version_number

This commit is contained in:
ahmed531998 2023-08-30 11:58:53 +02:00
parent 9daa8d8592
commit 497d9ac139
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

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