Skip to content

Commit 8ef7ce9

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

File tree

2 files changed

+26
-1
lines changed

2 files changed

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

.ci/pipeline/release_matrix_job.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs_on_dockers:
3131
arch: 'x86_64',
3232
tag: '20250304'
3333
}
34-
34+
- {name: 'blackduck', url: 'harbor.mellanox.com/toolbox/blackduck_post_scan:latest', category: 'tool', arch: 'x86_64'}
3535

3636
steps:
3737
- name: Build-dpcp
@@ -43,10 +43,31 @@ steps:
4343
4444
- name: Release
4545
parallel: false
46+
containerSelector:
47+
- "{name: 'rhel8.6', variant:1}"
4648
run: |
4749
.ci/do_release.sh
4850
archiveArtifacts: "**/build_pkg.log,**/packages/*.rpm"
4951

52+
- name: Blackduck
53+
enable: ${do_blackduck}
54+
containerSelector:
55+
- "{name: 'blackduck', category:'tool', variant:1}"
56+
shell: action
57+
module: ngci
58+
run: NGCIBlackDuckScan
59+
args:
60+
projectName: "libxlio"
61+
projectVersion: "${sha1}"
62+
projectSrcPath: "src"
63+
attachArtifact: true
64+
reportName: "BlackDuck report"
65+
scanMode: "source"
66+
skipDockerDaemonCheck: true
67+
credentialsId: "swx-jenkins3-svc_git-nbu_token"
68+
env:
69+
SPRING_APPLICATION_JSON: '{"blackduck.url":"https://blackduck.mellanox.com/","blackduck.api.token":"ODMwOWYwMzEtODA2ZC00MzBjLWI1ZDEtNmFiMjBkYzQzMzkwOjNmNjExN2M1LWE2ZmEtNDZlYS1hZjRiLTZlNDgwNjAwOTVjNw=="}'
70+
5071
pipeline_start:
5172
shell: action
5273
module: groovy

0 commit comments

Comments
 (0)