Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/blackduck_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ echo " VERSION: ${PROJECT_VERSION}"
echo " SRC_PATH: ${PROJECT_SRC_PATH}"

[[ -d /tmp/blackduck ]] && rm -rf /tmp/blackduck
sudo -u swx-jenkins git clone -c core.sshCommand="ssh -i ~/.ssh/id_ed25519" -b master --single-branch --depth=1 ssh://git-nbu.nvidia.com:12023/DevOps/Tools/blackduck /tmp/blackduck
git clone -c core.sshCommand="ssh -i ~/.ssh/id_ed25519" -b master --single-branch --depth=1 ssh://git-nbu.nvidia.com:12023/DevOps/Tools/blackduck /tmp/blackduck
cd /tmp/blackduck

# disable check errors
Expand Down
2 changes: 1 addition & 1 deletion .ci/opensource_jjb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
description: "Collect artifacts."
- bool:
name: "do_blackduck"
default: true
default: false
description: "Run BlackDuck."
- bool:
name: "do_copyrights"
Expand Down
6 changes: 5 additions & 1 deletion .ci/pipeline/release_jjb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
name: "do_antivirus"
default: true
description: "Run Antivirus."
- bool:
name: "do_blackduck"
default: true
description: "Run BlackDuck."
- string:
name: "notification_email"
default: "{jjb_release_email}"
Expand All @@ -47,7 +51,7 @@
name: "conf_file"
default: ".ci/pipeline/release_matrix_job.yaml"
description: "job config file. Do not change it"
- bool:
- bool:
name: "do_dr_build"
default: false
description: "Build DR weekly"
Expand Down
28 changes: 28 additions & 0 deletions .ci/pipeline/release_matrix_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ kubernetes:
nodeSelector: 'kubernetes.io/arch=amd64'
jnlpImage: 'nbu-harbor.gtm.nvidia.com/toolbox/c3po-jnlp:latest'

credentials:
- {credentialsId: 'blackduck_api_token', type: 'string', variable: 'BLACKDUCK_API_TOKEN'}

env:
MAIL_FROM: [email protected]

Expand All @@ -40,17 +43,32 @@ runs_on_dockers:
runAsUser: '6213',
runAsGroup: '101'
}
- {
file: '.ci/dockerfiles/Dockerfile.rhel8.6',
arch: 'x86_64',
name: 'xlio_static.bduck',
uri: '$arch/$name',
tag: '20250418',
build_args: '--no-cache --target bduck',
category: 'tool',
runAsUser: '6213',
runAsGroup: '101'
}

steps:
- name: Build-dpcp
parallel: false
containerSelector:
- "{name: 'rhel8.6'}"
run: |
git clone https://github.com/Mellanox/libdpcp.git libdpcp
cd libdpcp
./autogen.sh && ./configure --prefix=/usr && sudo make install

- name: Release
parallel: false
containerSelector:
- "{name: 'rhel8.6'}"
run: |
if ${do_dr_build}; then
git checkout tags/${release_tag}
Expand All @@ -64,6 +82,16 @@ steps:
env WORKSPACE=$PWD .ci/antivirus.sh
archiveArtifacts: 'logs/'

- name: Blackduck
enable: ${do_blackduck}
parallel: false
containerSelector:
- "{name: 'xlio_static.bduck', category:'tool'}"
run: |
.ci/blackduck_source.sh
archiveArtifacts: 'logs/'
credentialsId: 'blackduck_api_token'

pipeline_start:
shell: action
module: groovy
Expand Down