Skip to content

Commit

Permalink
move exception into github lib
Browse files Browse the repository at this point in the history
  • Loading branch information
gkirok committed Feb 26, 2019
1 parent b1e0db6 commit b45c732
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit b45c732

Please sign in to comment.