Update Jenkinsfile

This commit is contained in:
Mihai Georgescu 2023-11-28 09:52:29 +02:00 committed by GitHub
parent 354238948d
commit 5bb86102ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
Jenkinsfile vendored
View file

@ -41,9 +41,11 @@ pipeline {
}
stage('Tag the docker image') {
steps {
echo "now we will tag the docker image"
def dockerTag = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
echo "The tag used for Docker image: ${dockerTag}"
script {
echo "now we will tag the docker image"
def dockerTag = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
echo "The tag used for Docker image: ${dockerTag}"
}
}
}
stage('Push to DockerHub') {