From 9efdd5b6113d7067160a48ffeda49c81df907d3d Mon Sep 17 00:00:00 2001 From: Erick Daniszewski Date: Fri, 28 Feb 2020 23:34:25 -0500 Subject: [PATCH] ci: replace tag regex with buildingTag fn --- .jenkins | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.jenkins b/.jenkins index b8a225b0..a733fbfa 100644 --- a/.jenkins +++ b/.jenkins @@ -61,8 +61,7 @@ pipeline { stage('Draft GitHub Release') { when { - // example matches: v1.2.3, v1.2.3-dev - tag pattern: '^v(0|[1-9]*)\\.(0|[1-9]*)\\.(0|[1-9]*)(-(\\S*))?$', comparator: "REGEXP" + buildingTag() } environment { GITHUB_USER = 'vapor-ware' @@ -84,8 +83,7 @@ pipeline { stage('Publish Release Images') { when { - // example matches: v1.2.3, v1.2.3-dev - tag pattern: '^v(0|[1-9]*)\\.(0|[1-9]*)\\.(0|[1-9]*)(-(\\S*))?$', comparator: "REGEXP" + buildingTag() } steps { withDockerRegistry(registry: [credentialsId: 'vio-docker-hub']) {