Skip to content

Commit e9efe64

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

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-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: 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ runs_on_dockers:
3131
arch: 'x86_64',
3232
tag: '20250304'
3333
}
34+
- {name: 'blackduck', url: 'harbor.mellanox.com/toolbox/blackduck_post_scan:latest', category: 'tool', arch: 'x86_64'}
3435

3536

3637
steps:
@@ -43,10 +44,31 @@ steps:
4344
4445
- name: Release
4546
parallel: false
47+
containerSelector:
48+
- "{name: 'rhel8.6', variant:1}"
4649
run: |
4750
.ci/do_release.sh
4851
archiveArtifacts: "**/build_pkg.log,**/packages/*.rpm"
4952

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

0 commit comments

Comments
 (0)