mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
added docker stage
This commit is contained in:
parent
43b55f1f92
commit
1fef4c921e
1 changed files with 2 additions and 2 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -8,7 +8,7 @@ pipeline {
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
SONAR_AUTH_TOKEN = credentials('SONAR_AUTH_TOKEN') // Assumes you have stored your token in Jenkins Credentials
|
SONAR_AUTH_TOKEN = credentials('SONAR_AUTH_TOKEN') // Assumes you have stored your token in Jenkins Credentials
|
||||||
DOCKER_REGISTRY_CREDENTIALS = credentials('prasannakumarsinganamalla431')
|
DOCKER_REGISTRY_CREDENTIALS = credentials('Docker_cred')
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ pipeline {
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
withDockerRegistry(credentialsId:"${DOCKER_REGISTRY_CREDENTIALS}" ,registryUrl: "https://hub.docker.com/") {
|
withDockerRegistry(credentialsId:"${DOCKER_REGISTRY_CREDENTIALS}") {
|
||||||
sh "docker build -t prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER} ."
|
sh "docker build -t prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER} ."
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue