From e6edfe31d9c91e1101e1bea0db303121a0cbf04f Mon Sep 17 00:00:00 2001 From: Zoltan Kiss Date: Mon, 14 Oct 2019 15:51:18 +0100 Subject: [PATCH] Short git sha as docker img tag (#5586) * short git sha as docker img tag * move subSequence --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c43acc1037..13dc04c6a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}" }