mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
b8b8b71c5e
commit
5e3077eac1
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -25,7 +25,7 @@ pipeline {
|
|||
script {
|
||||
withCredentials([usernamePassword(credentialsId: "${DOCKER_CREDENTIALS_ID}", usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) {
|
||||
sh """
|
||||
docker login -u \$DOCKER_USERNAME --password \$DOCKER_PASSWORD
|
||||
docker login -u $DOCKER_USERNAME --password $DOCKER_PASSWORD
|
||||
docker build -t marijastopa/mr-jenkins:\${GIT_COMMIT:0:7} .
|
||||
docker push marijastopa/mr-jenkins:\${GIT_COMMIT:0:7}
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue