Skip to content

Commit 3db5a95

Browse files
committed
[CI] issue: HPCINFRA-3964 add Blackduck step to release job
Signed-off-by: Noam Tsemah <[email protected]>
1 parent e0d4799 commit 3db5a95

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.ci/blackduck_source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo " VERSION: ${PROJECT_VERSION}"
2626
echo " SRC_PATH: ${PROJECT_SRC_PATH}"
2727

2828
[[ -d /tmp/blackduck ]] && rm -rf /tmp/blackduck
29-
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
29+
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
3030
cd /tmp/blackduck
3131

3232
# disable check errors

.ci/pipeline/release_jjb.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
name: "do_antivirus"
4040
default: true
4141
description: "Run Antivirus."
42+
- bool:
43+
name: "do_blackduck"
44+
default: true
45+
description: "Run BlackDuck."
4246
- string:
4347
name: "notification_email"
4448
default: "{jjb_release_email}"
@@ -47,7 +51,7 @@
4751
name: "conf_file"
4852
default: ".ci/pipeline/release_matrix_job.yaml"
4953
description: "job config file. Do not change it"
50-
- bool:
54+
- bool:
5155
name: "do_dr_build"
5256
default: false
5357
description: "Build DR weekly"

.ci/pipeline/release_matrix_job.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ kubernetes:
1717
nodeSelector: 'kubernetes.io/arch=amd64'
1818
jnlpImage: 'nbu-harbor.gtm.nvidia.com/toolbox/c3po-jnlp:latest'
1919

20+
credentials:
21+
- {credentialsId: 'blackduck_api_token', type: 'string', variable: 'BLACKDUCK_API_TOKEN'}
22+
2023
env:
2124
MAIL_FROM: [email protected]
2225

@@ -40,17 +43,32 @@ runs_on_dockers:
4043
runAsUser: '6213',
4144
runAsGroup: '101'
4245
}
46+
- {
47+
file: '.ci/dockerfiles/Dockerfile.rhel8.6',
48+
arch: 'x86_64',
49+
name: 'xlio_static.bduck',
50+
uri: '$arch/$name',
51+
tag: '20250418',
52+
build_args: '--no-cache --target bduck',
53+
category: 'tool',
54+
runAsUser: '6213',
55+
runAsGroup: '101'
56+
}
4357

4458
steps:
4559
- name: Build-dpcp
4660
parallel: false
61+
containerSelector:
62+
- "{name: 'rhel8.6'}"
4763
run: |
4864
git clone https://github.com/Mellanox/libdpcp.git libdpcp
4965
cd libdpcp
5066
./autogen.sh && ./configure --prefix=/usr && sudo make install
5167
5268
- name: Release
5369
parallel: false
70+
containerSelector:
71+
- "{name: 'rhel8.6'}"
5472
run: |
5573
if ${do_dr_build}; then
5674
git checkout tags/${release_tag}
@@ -64,6 +82,16 @@ steps:
6482
env WORKSPACE=$PWD .ci/antivirus.sh
6583
archiveArtifacts: 'logs/'
6684

85+
- name: Blackduck
86+
enable: ${do_blackduck}
87+
parallel: false
88+
containerSelector:
89+
- "{name: 'xlio_static.bduck', category:'tool'}"
90+
run: |
91+
.ci/blackduck_source.sh
92+
archiveArtifacts: 'logs/'
93+
credentialsId: 'blackduck_api_token'
94+
6795
pipeline_start:
6896
shell: action
6997
module: groovy

0 commit comments

Comments
 (0)