Skip to content

Commit 71e347d

Browse files
Marcellus Tavaresbrianchandotcom
authored andcommitted
LPD-53681 | LPD-54359 Enable Prisma Cloud Scan Step for the Faro Image
1 parent 27bc5fc commit 71e347d

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

modules/dxp/apps/osb/osb-faro/Jenkinsfile

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@Library('WorkflowCiSharedLib') _
2+
3+
def osbFaroImage
4+
15
pipeline {
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
}

0 commit comments

Comments
 (0)