version_number

This commit is contained in:
ahmed531998 2023-08-30 11:36:20 +02:00
parent 46a25c3446
commit 2d124fd795
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

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