From ba93cf25b02fa77fc8e1ff7f7a4c288e19c91531 Mon Sep 17 00:00:00 2001 From: Anna Babu Palathingal <148897727+annaibm@users.noreply.github.com> Date: Thu, 23 May 2024 11:49:15 -0400 Subject: [PATCH] added jenkinsfile --- buildenv/jenkins/JenkinsfileBase | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index db9c1a62eb..a045701476 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -661,18 +661,16 @@ def buildTest() { // check for each lib. If lib does not exist, donwload it. // If lib exists, SHA will be checked. Re-download if SHA does not match. timeout(time: 20, unit: 'MINUTES') { - def customUrl = getCustomUrl() - if (PLATFORM.contains("windows")) { - env.LIB_DIR = env.LIB_DIR.replaceAll("\\\\", "/") - env.SYSTEM_LIB_DIR = env.SYSTEM_LIB_DIR.replaceAll("\\\\", "/") - } - if (env.BUILD_LIST != 'system') { - sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}" - } else { - env.LIB_DIR = env.SYSTEM_LIB_DIR - sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}" + def customUrl = getCustomUrl() + if (PLATFORM.contains("windows")) { + env.LIB_DIR = env.LIB_DIR.replaceAll("\\\\", "/") + env.SYSTEM_LIB_DIR = env.SYSTEM_LIB_DIR.replaceAll("\\\\", "/") + } + if (env.BUILD_LIST == 'system') { + env.LIB_DIR = env.SYSTEM_LIB_DIR + } + sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}" } - } } catch (Exception e) { echo 'Exception: ' + e.toString() echo "Cannot pre-stage test libs from ${env.LIB_DIR} on the machine. Skipping..."