File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed
modules/dxp/apps/osb/osb-faro Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change 1+ @Library (' WorkflowCiSharedLib' ) _
2+
3+ def osbFaroImage
4+
15pipeline {
26 agent {
37 kubernetes {
@@ -79,13 +83,25 @@ pipeline {
7983 steps {
8084 dir(" modules/dxp/apps/osb/osb-faro/osb-faro-docker/cloud" ) {
8185 script {
82- withDockerRegistry([credentialsId : " dockerhub" , url : " " ]) {
83- osbFaroImage = docker. build(
84- " ${ IMAGE_NAME} :${ IMAGE_TAG_SUFFIX} " ,
85- " ${ DOCKER_BUILD_ARGS} " )
86+ osbFaroImage = docker. build(
87+ " ${ IMAGE_NAME} :${ IMAGE_TAG_SUFFIX} " ,
88+ " ${ DOCKER_BUILD_ARGS} " )
89+ }
90+ }
91+ }
92+ }
8693
87- osbFaroImage. push()
88- }
94+ stage(' Prisma Cloud Scan' ) {
95+ steps {
96+ prismaScanImage([osbFaroImage. imageName()])
97+ }
98+ }
99+
100+ stage(" Push Docker Image" ) {
101+ steps {
102+ script {
103+ withDockerRegistry([credentialsId : " dockerhub" , url : " " ]) {
104+ osbFaroImage. push()
89105 }
90106 }
91107 }
You can’t perform that action at this time.
0 commit comments