mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
291e28605f
commit
1549a4a598
1 changed files with 2 additions and 0 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -43,6 +43,8 @@ pipeline {
|
|||
withCredentials([usernamePassword(credentialsId: 'DOCKERHUB_CREDENTIALS_ID', usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) {
|
||||
sh "docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY"
|
||||
sh "docker push $DOCKER_REGISTRY/$serviceName:$TAG"
|
||||
echo 'PUSHED TO $DOCKER_REGISTRY/$serviceName:$TAG'
|
||||
echo $DOCKER_REGISTRY $DOCKER_PASSWORD $DOCKER_USERNAME
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue