version_number

This commit is contained in:
ahmed531998 2023-08-30 11:40:27 +02:00
parent c3bdd378e5
commit 07bdff2e3d
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -17,8 +17,8 @@ pipeline {
stage('Building image') {
steps{
script {
version_info=sh(script: "git rev-parse --short HEAD", returnStdout: true)
dockerImage = docker.build(imagename, '--build-arg "version_info=${version_info}" .')
def version_info=sh(script: "git rev-parse --short HEAD", returnStdout: true)
dockerImage = docker.build(imagename, '--build-arg version_info=${version_info} .')
}
}
}