From ad6399474d2c0fb4678513cf62527647f09eef0f Mon Sep 17 00:00:00 2001 From: John Gasper Date: Wed, 5 Sep 2018 10:22:46 -0700 Subject: [PATCH] swapping method for splitting the string --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 552b22a..0546f52 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -143,7 +143,7 @@ def build(tagSet) { def builds = [:] for (String tag : tagSet) { - def baseImg = docker.build("${maintainer}/${imagename}:${tag}", "--no-cache ${tag.split('.')[0]}/${tag}") + def baseImg = docker.build("${maintainer}/${imagename}:${tag}", "--no-cache ${tag.tokenize('.')[0]}/${tag}") echo "built ${tag}; adding to the push queue" builds.put(tag, baseImg); }