Skip to content

Commit f6e3e55

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

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-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: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ kubernetes:
1616
env:
1717
MAIL_FROM: [email protected]
1818

19+
credentials:
20+
- {credentialsId: 'blackduck_api_token', type: 'string', variable: 'BLACKDUCK_API_TOKEN'}
21+
22+
1923
volumes:
2024
# Default release location
2125
- {mountPath: /auto/sw/release/sw_acceleration, hostPath: /auto/sw/release/sw_acceleration}
@@ -31,7 +35,7 @@ runs_on_dockers:
3135
arch: 'x86_64',
3236
tag: '20250304'
3337
}
34-
38+
- {name: 'blackduck', url: 'harbor.mellanox.com/toolbox/blackduck_post_scan:latest', category: 'tool', arch: 'x86_64'}
3539

3640
steps:
3741
- name: Build-dpcp
@@ -43,10 +47,31 @@ steps:
4347
4448
- name: Release
4549
parallel: false
50+
containerSelector:
51+
- "{name: 'rhel8.6', variant:1}"
4652
run: |
4753
.ci/do_release.sh
4854
archiveArtifacts: "**/build_pkg.log,**/packages/*.rpm"
4955

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":${BLACKDUCK_API_TOKEN}}'
74+
5075
pipeline_start:
5176
shell: action
5277
module: groovy

0 commit comments

Comments
 (0)