mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
354238948d
commit
5bb86102ee
1 changed files with 5 additions and 3 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -41,9 +41,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Tag the docker image') {
|
stage('Tag the docker image') {
|
||||||
steps {
|
steps {
|
||||||
echo "now we will tag the docker image"
|
script {
|
||||||
def dockerTag = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
|
echo "now we will tag the docker image"
|
||||||
echo "The tag used for Docker image: ${dockerTag}"
|
def dockerTag = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
|
||||||
|
echo "The tag used for Docker image: ${dockerTag}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Push to DockerHub') {
|
stage('Push to DockerHub') {
|
||||||
|
|
Loading…
Reference in a new issue