Skip to content

Commit ce9718a

Browse files
committed
[CI] issue: 4705805 Add Blackduck to release job
Signed-off-by: Noam Tsemah <[email protected]>
1 parent 0dc96e0 commit ce9718a

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.ci/blackduck_source.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ echo " NAME: ${PROJECT_NAME}"
2323
echo " VERSION: ${PROJECT_VERSION}"
2424
echo " SRC_PATH: ${PROJECT_SRC_PATH}"
2525

26+
sleep 600
27+
2628
# clone BlackDuck
2729
[[ -d /tmp/blackduck ]] && rm -rf /tmp/blackduck
28-
sudo -u swx-jenkins git clone -c core.sshCommand="ssh -i ~/.ssh/id_ed25519" -b master --single-branch --depth=1 ssh://git-nbu.nvidia.com:12023/DevOps/Tools/blackduck /tmp/blackduck
30+
git clone -c core.sshCommand="ssh -i ~/.ssh/id_ed25519" -b master --single-branch --depth=1 ssh://git-nbu.nvidia.com:12023/DevOps/Tools/blackduck /tmp/blackduck
2931
cd /tmp/blackduck
3032

3133
# disable check errors

.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: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ kubernetes:
1616
nodeSelector: 'kubernetes.io/arch=amd64'
1717
jnlpImage: 'harbor.mellanox.com/toolbox/c3po-jnlp:latest'
1818

19+
credentials:
20+
- {credentialsId: 'blackduck_api_token', type: 'string', variable: 'BLACKDUCK_API_TOKEN'}
21+
1922
env:
2023
MAIL_FROM: [email protected]
2124

@@ -37,14 +40,34 @@ runs_on_dockers:
3740
arch: 'x86_64',
3841
tag: '20250128'
3942
}
43+
- {
44+
name: 'blackduck',
45+
file: '.ci/dockerfiles/Dockerfile.rhel8.6',
46+
category: 'tool',
47+
arch: 'x86_64',
48+
tag: '20250630',
49+
uri: 'vma/$arch/$name/bduck',
50+
build_args: '--no-cache --target bduck'
51+
}
4052

4153
steps:
4254
- name: Release
43-
parallel: false
55+
containerSelector:
56+
- "{name: 'rhel8.6', variant:1}"
4457
run: |
4558
.ci/do_release.sh
4659
archiveArtifacts: pkg/build_pkg.log,pkg/packages/*.rpm
4760

61+
- name: Blackduck
62+
enable: ${do_blackduck}
63+
containerSelector:
64+
- "{name: 'blackduck', category:'tool', variant:1}"
65+
run: |
66+
.ci/blackduck_source.sh
67+
archiveArtifacts: 'logs/'
68+
credentialsId:
69+
- "blackduck_api_token"
70+
4871
pipeline_start:
4972
shell: action
5073
module: groovy

0 commit comments

Comments
 (0)