Skip to content

Commit 7677d86

Browse files
committed
[CI] issue: 4705805 Add Blackduck to release job
Signed-off-by: Noam Tsemah <[email protected]>
1 parent 0dc96e0 commit 7677d86

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.ci/blackduck_source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo " SRC_PATH: ${PROJECT_SRC_PATH}"
2525

2626
# clone BlackDuck
2727
[[ -d /tmp/blackduck ]] && rm -rf /tmp/blackduck
28-
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
28+
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
2929
cd /tmp/blackduck
3030

3131
# disable check errors

.ci/pipeline/release_jjb.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
name: "do_release"
3636
default: true
3737
description: "Release build packges into the release folder, set to false for debugging"
38+
- bool:
39+
name: "do_blackduck"
40+
default: true
41+
description: "Run BlackDuck."
3842
- string:
3943
name: "notification_email"
4044
default: "{jjb_release_email}"

.ci/pipeline/release_matrix_job.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ registry_host: nbu-harbor.gtm.nvidia.com
44
registry_auth: swx-infra_harbor_credentials
55
registry_path: /swx-infra/media/libvma
66

7+
failFast: true
8+
79
kubernetes:
810
privileged: true
911
cloud: il-ipp-blossom-prod
@@ -16,6 +18,9 @@ kubernetes:
1618
nodeSelector: 'kubernetes.io/arch=amd64'
1719
jnlpImage: 'harbor.mellanox.com/toolbox/c3po-jnlp:latest'
1820

21+
credentials:
22+
- {credentialsId: 'blackduck_api_token', type: 'string', variable: 'BLACKDUCK_API_TOKEN'}
23+
1924
env:
2025
MAIL_FROM: [email protected]
2126

@@ -37,14 +42,38 @@ runs_on_dockers:
3742
arch: 'x86_64',
3843
tag: '20250128'
3944
}
45+
- {
46+
name: 'blackduck',
47+
file: '.ci/dockerfiles/Dockerfile.rhel8.6',
48+
category: 'tool',
49+
arch: 'x86_64',
50+
tag: '20250630',
51+
uri: 'vma/$arch/$name/bduck',
52+
build_args: '--no-cache --target bduck',
53+
runAsUser: '6213',
54+
runAsGroup: '101'
55+
}
4056

4157
steps:
4258
- name: Release
4359
parallel: false
60+
containerSelector:
61+
- "{name: 'rhel8.6', variant:1}"
4462
run: |
4563
.ci/do_release.sh
4664
archiveArtifacts: pkg/build_pkg.log,pkg/packages/*.rpm
4765

66+
- name: Blackduck
67+
parallel: false
68+
enable: ${do_blackduck}
69+
containerSelector:
70+
- "{name: 'blackduck', category:'tool', variant:1}"
71+
run: |
72+
.ci/blackduck_source.sh
73+
archiveArtifacts: 'logs/'
74+
credentialsId:
75+
- "blackduck_api_token"
76+
4877
pipeline_start:
4978
shell: action
5079
module: groovy

0 commit comments

Comments
 (0)