Skip to content

Commit 8066999

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

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-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: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ kubernetes:
1313
limits: '{memory: 8Gi, cpu: 7000m}'
1414
requests: '{memory: 8Gi, cpu: 7000m}'
1515

16+
credentials:
17+
- {credentialsId: 'swx-jenkins3-svc_git-nbu_token', type: 'string', variable: 'BLACKDUCK_GERRIT_CREDENTIALS'}
18+
1619
env:
1720
MAIL_FROM: [email protected]
1821

@@ -31,7 +34,7 @@ runs_on_dockers:
3134
arch: 'x86_64',
3235
tag: '20250304'
3336
}
34-
37+
- {name: 'blackduck', url: 'harbor.mellanox.com/toolbox/blackduck_post_scan:latest', category: 'tool', arch: 'x86_64'}
3538

3639
steps:
3740
- name: Build-dpcp
@@ -43,10 +46,31 @@ steps:
4346
4447
- name: Release
4548
parallel: false
49+
containerSelector:
50+
- "{name: 'rhel8.6', variant:1}"
4651
run: |
4752
.ci/do_release.sh
4853
archiveArtifacts: "**/build_pkg.log,**/packages/*.rpm"
4954

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

0 commit comments

Comments
 (0)