version_number
This commit is contained in:
parent
c3bdd378e5
commit
07bdff2e3d
|
@ -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} .')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue