File tree Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ echo " VERSION: ${PROJECT_VERSION}"
2626echo " SRC_PATH: ${PROJECT_SRC_PATH} "
2727
2828[[ -d /tmp/blackduck ]] && rm -rf /tmp/blackduck
29- 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
29+ 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
3030cd /tmp/blackduck
3131
3232# disable check errors
Original file line number Diff line number Diff line change 3939 name : " do_antivirus"
4040 default : true
4141 description : " Run Antivirus."
42+ - bool :
43+ name : " do_blackduck"
44+ default : true
45+ description : " Run BlackDuck."
4246 - string :
4347 name : " notification_email"
4448 default : " {jjb_release_email}"
4751 name : " conf_file"
4852 default : " .ci/pipeline/release_matrix_job.yaml"
4953 description : " job config file. Do not change it"
50- - bool :
54+ - bool :
5155 name : " do_dr_build"
5256 default : false
5357 description : " Build DR weekly"
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ kubernetes:
1717 nodeSelector : ' kubernetes.io/arch=amd64'
1818 jnlpImage : ' nbu-harbor.gtm.nvidia.com/toolbox/c3po-jnlp:latest'
1919
20+ credentials :
21+ - {credentialsId: 'blackduck_api_token', type: 'string', variable: 'BLACKDUCK_API_TOKEN'}
22+
2023env :
21242225
@@ -40,17 +43,32 @@ runs_on_dockers:
4043 runAsUser : ' 6213' ,
4144 runAsGroup : ' 101'
4245 }
46+ - {
47+ file : ' .ci/dockerfiles/Dockerfile.rhel8.6' ,
48+ arch : ' x86_64' ,
49+ name : ' xlio_static.bduck' ,
50+ uri : ' $arch/$name' ,
51+ tag : ' 20250418' ,
52+ build_args : ' --no-cache --target bduck' ,
53+ category : ' tool' ,
54+ runAsUser : ' 6213' ,
55+ runAsGroup : ' 101'
56+ }
4357
4458steps :
4559 - name : Build-dpcp
4660 parallel : false
61+ containerSelector :
62+ - " {name: 'rhel8.6'}"
4763 run : |
4864 git clone https://github.com/Mellanox/libdpcp.git libdpcp
4965 cd libdpcp
5066 ./autogen.sh && ./configure --prefix=/usr && sudo make install
5167
5268 - name : Release
5369 parallel : false
70+ containerSelector :
71+ - " {name: 'rhel8.6'}"
5472 run : |
5573 if ${do_dr_build}; then
5674 git checkout tags/${release_tag}
@@ -64,6 +82,16 @@ steps:
6482 env WORKSPACE=$PWD .ci/antivirus.sh
6583 archiveArtifacts : ' logs/'
6684
85+ - name : Blackduck
86+ enable : ${do_blackduck}
87+ parallel : false
88+ containerSelector :
89+ - " {name: 'xlio_static.bduck', category:'tool'}"
90+ run : |
91+ .ci/blackduck_source.sh
92+ archiveArtifacts : ' logs/'
93+ credentialsId : ' blackduck_api_token'
94+
6795pipeline_start :
6896 shell : action
6997 module : groovy
You can’t perform that action at this time.
0 commit comments