version_number
This commit is contained in:
parent
497d9ac139
commit
d7c80ebdb4
|
@ -18,10 +18,7 @@ pipeline {
|
|||
stage('Building image') {
|
||||
steps{
|
||||
script {
|
||||
version_info= sh(script: 'git rev-parse --short HEAD', returnStdout: true)
|
||||
sh(script: 'echo "${version_info}"')
|
||||
sh(script: 'echo "${GIT_COMMIT}"')
|
||||
dockerImage = docker.build(imagename, '--build-arg version_info=${version_info} .')
|
||||
dockerImage = docker.build(imagename, '--build-arg version_info=${GIT_COMMIT} .')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue