Short git sha as docker img tag (#5586)

* short git sha as docker img tag

* move subSequence
This commit is contained in:
Zoltan Kiss 2019-10-14 15:51:18 +01:00 committed by Stefano Franz
parent 6e98adb085
commit e6edfe31d9

2
Jenkinsfile vendored
View File

@ -9,7 +9,7 @@ pipeline {
options { timestamps() }
environment {
DOCKER_TAG_TO_USE = "${UUID.randomUUID().toString().toLowerCase().subSequence(0, 12)}"
DOCKER_TAG_TO_USE = "${env.GIT_COMMIT.subSequence(0, 8)}"
EXECUTOR_NUMBER = "${env.EXECUTOR_NUMBER}"
BUILD_ID = "${env.BUILD_ID}-${env.JOB_NAME}"
}