Skip to content

Commit 5342b08

Browse files
Improved getDependency workflow
- getDependencies.pl script run twice.Once with customUrl. If it failed, retry with 3rd party URL. Closes: #6461 Signed-off-by:Amrutha Kanhirathingal <[email protected]>
1 parent 51b7317 commit 5342b08

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

buildenv/jenkins/JenkinsfileBase

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,16 @@ def setupParallelEnv() {
213213
// If lib exists, SHA will be checked. Re-download if SHA does not match.
214214
timeout(time: 20, unit: 'MINUTES') {
215215
def customUrl = getCustomUrl()
216+
env.CUSTOM_URL = customUrl
216217
if (PLATFORM.contains("windows")) {
217218
env.LIB_DIR = env.LIB_DIR.replaceAll("\\\\", "/")
218219
env.SYSTEM_LIB_DIR = env.SYSTEM_LIB_DIR.replaceAll("\\\\", "/")
219220
}
220221
if (env.BUILD_LIST == 'system') {
221222
env.LIB_DIR = env.SYSTEM_LIB_DIR
223+
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
222224
}
223-
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
225+
224226
}
225227
} catch (Exception e) {
226228
echo 'Exception: ' + e.toString()
@@ -703,14 +705,15 @@ def buildTest() {
703705
// If lib exists, SHA will be checked. Re-download if SHA does not match.
704706
timeout(time: 20, unit: 'MINUTES') {
705707
def customUrl = getCustomUrl()
708+
env.CUSTOM_URL = customUrl
706709
if (PLATFORM.contains("windows")) {
707710
env.LIB_DIR = env.LIB_DIR.replaceAll("\\\\", "/")
708711
env.SYSTEM_LIB_DIR = env.SYSTEM_LIB_DIR.replaceAll("\\\\", "/")
709712
}
710713
if (env.BUILD_LIST == 'system') {
711714
env.LIB_DIR = env.SYSTEM_LIB_DIR
715+
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
712716
}
713-
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
714717
}
715718
} catch (Exception e) {
716719
echo 'Exception: ' + e.toString()

0 commit comments

Comments
 (0)