version_number
This commit is contained in:
parent
46a25c3446
commit
2d124fd795
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue