Skip to content

Commit ccf7651

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

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
@@ -35,7 +35,7 @@ runs_on_dockers:
3535
arch: 'x86_64',
3636
tag: '20250304'
3737
}
38-
38+
- {name: 'blackduck', url: 'harbor.mellanox.com/toolbox/blackduck_post_scan:latest', category: 'tool', arch: 'x86_64'}
3939

4040
steps:
4141
- name: Build-dpcp
@@ -47,10 +47,31 @@ steps:
4747
4848
- name: Release
4949
parallel: false
50+
containerSelector:
51+
- "{name: 'rhel8.6', variant:1}"
5052
run: |
5153
.ci/do_release.sh
5254
archiveArtifacts: "**/build_pkg.log,**/packages/*.rpm"
5355

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

0 commit comments

Comments
 (0)