From 825e79e621ff5307452c86c7996278a713ed3be6 Mon Sep 17 00:00:00 2001 From: G33tha Date: Wed, 15 Apr 2020 21:23:25 +0530 Subject: [PATCH] Update auto_build_deploy --- auto_build_deploy | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/auto_build_deploy b/auto_build_deploy index aac7efdf..2d3f6aa3 100644 --- a/auto_build_deploy +++ b/auto_build_deploy @@ -10,10 +10,7 @@ node('build-slave') { ansiColor('xterm') { stage('Checkout') { tag_name = env.JOB_NAME.split("/")[-1] - if (!tag_name.contains(env.public_repo_branch)) { - println("Error.. Tag does not contain " + env.public_repo_branch) - error("Oh ho! Tag is not a release candidate.. Skipping build") - } + pre_checks() if (!env.hub_org) { println(ANSI_BOLD + ANSI_RED + "Uh Oh! Please set a Jenkins environment variable named hub_org with value as registery/sunbidrded" + ANSI_NORMAL) error 'Please resolve the errors and rerun..'