Skip to content

Commit bf91ef6

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

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.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: false
41+
description: "Run BlackDuck."
3842
- string:
3943
name: "notification_email"
4044
default: "{jjb_release_email}"

.ci/pipeline/release_matrix_job.yaml

Lines changed: 20 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,10 @@ kubernetes:
1618
nodeSelector: 'kubernetes.io/arch=amd64'
1719
jnlpImage: 'harbor.mellanox.com/toolbox/c3po-jnlp:latest'
1820

21+
credentials:
22+
- {credentialsId: 'swx-jenkins2-svc-gerrit-ssh-key', keyFileVariable: 'GERRIT_SSH_KEY', type: 'sshUserPrivateKey'}
23+
- {credentialsId: 'blackduck_api_token', type: 'string', variable: 'BLACKDUCK_API_TOKEN'}
24+
1925
env:
2026
MAIL_FROM: [email protected]
2127

@@ -37,14 +43,28 @@ runs_on_dockers:
3743
arch: 'x86_64',
3844
tag: '20250128'
3945
}
46+
- {name: 'blackduck', file: '.ci/dockerfiles/Dockerfile.rhel8.6', category: 'tool', arch: 'x86_64', tag: '20250630', uri: 'vma/$arch/$name/bduck', build_args: '--no-cache --target bduck'}
4047

4148
steps:
4249
- name: Release
4350
parallel: false
51+
containerSelector:
52+
- "{name: 'rhel8.6', variant:1}"
4453
run: |
4554
.ci/do_release.sh
4655
archiveArtifacts: pkg/build_pkg.log,pkg/packages/*.rpm
4756

57+
- name: Blackduck
58+
enable: ${do_blackduck}
59+
containerSelector:
60+
- "{name: 'blackduck', category:'tool', variant:1}"
61+
run: |
62+
.ci/blackduck_source.sh
63+
archiveArtifacts: 'logs/'
64+
credentialsId:
65+
- "swx-jenkins2-svc-gerrit-ssh-key"
66+
- "blackduck_api_token"
67+
4868
pipeline_start:
4969
shell: action
5070
module: groovy

0 commit comments

Comments
 (0)