mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
751ce8e646
commit
d46566c33b
1 changed files with 1 additions and 20 deletions
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
|
@ -39,25 +39,6 @@ pipeline {
|
||||||
sh 'mvn clean package -DskipTests'
|
sh 'mvn clean package -DskipTests'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('OWASP Dependency-Check') {
|
|
||||||
steps {
|
|
||||||
dependencyCheck additionalArguments: '--scan target/', odcInstallation: 'OWASP Check'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build & push Docker Image') {
|
|
||||||
when {
|
|
||||||
branch 'Release'
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
withDockerRegistry(credentialsId: 'c9b058e5-bfe6-41f8-9b5d-dc0b0d2955ac', toolName: 'docker') {
|
|
||||||
sh "docker build -t prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER} -f .devcontainer/Dockerfile ."
|
|
||||||
sh "docker push prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER}"
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue