mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:35:50 +00:00
Edit Jenkinsfile
This commit is contained in:
parent
f7802e82c0
commit
59c3451bca
1 changed files with 11 additions and 11 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -24,16 +24,16 @@ pipeline {
|
||||||
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: false
|
archiveArtifacts artifacts: 'target/*.jar', allowEmptyArchive: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// stage ('Creating Docker image') {
|
stage ('Creating Docker image') {
|
||||||
// steps {
|
steps {
|
||||||
// sh 'docker build -t vkarpenko02/mr:${GIT_COMMIT} .'
|
sh 'docker build -t vkarpenko02/mr:${GIT_COMMIT} .'
|
||||||
// withCredentials([usernamePassword(credentialsId: 'docker_key', usernameVariable: 'DOCKER_HUB_USER', passwordVariable: 'DOCKER_HUB_PASS')]) {
|
withCredentials([usernamePassword(credentialsId: 'docker_key', usernameVariable: 'DOCKER_HUB_USER', passwordVariable: 'DOCKER_HUB_PASS')]) {
|
||||||
// sh """
|
sh """
|
||||||
// echo ${DOCKER_HUB_PASS} | docker login -u ${DOCKER_HUB_USER} --password-stdin
|
echo ${DOCKER_HUB_PASS} | docker login -u ${DOCKER_HUB_USER} --password-stdin
|
||||||
// docker push vkarpenko02/mr:${GIT_COMMIT}
|
docker push vkarpenko02/mr:${GIT_COMMIT}
|
||||||
// """
|
"""
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue