From b45c73274944b1c4d975efbb15369acdb6d5eee8 Mon Sep 17 00:00:00 2001 From: Gall Zvyagin Date: Tue, 26 Feb 2019 23:25:22 +0200 Subject: [PATCH] move exception into github lib --- Jenkinsfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bb39d6e87b1..1f386746979 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,13 +21,9 @@ podTemplate(label: "${git_project}-${label}", inheritFrom: "jnlp-docker") { common.notify_slack { stage('get tag data') { container('jnlp') { - try { - TAG_VERSION = github.get_tag_version(TAG_NAME, '^(v[\\.0-9]*.*-v[\\.0-9]*|unstable)\$') - DOCKER_TAG_VERSION = github.get_docker_tag_version(TAG_NAME, '^(v[\\.0-9]*.*-v[\\.0-9]*|unstable)\$') - } catch(Exception e) { - currentBuild.result = 'ABORTED' - error("${TAG_NAME} is not release tag.") - } + TAG_VERSION = github.get_tag_version(TAG_NAME, '^(v[\\.0-9]*.*-v[\\.0-9]*|unstable)\$') + DOCKER_TAG_VERSION = github.get_docker_tag_version(TAG_NAME, '^(v[\\.0-9]*.*-v[\\.0-9]*|unstable)\$') + echo "$TAG_VERSION" echo "$DOCKER_TAG_VERSION" }