Skip to content

Commit 80a0985

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 80a0985

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

buildenv/jenkins/JenkinsfileBase

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,15 @@ 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}"
224225
}
225226
} catch (Exception e) {
226227
echo 'Exception: ' + e.toString()
@@ -703,14 +704,15 @@ def buildTest() {
703704
// If lib exists, SHA will be checked. Re-download if SHA does not match.
704705
timeout(time: 20, unit: 'MINUTES') {
705706
def customUrl = getCustomUrl()
707+
env.CUSTOM_URL = customUrl
706708
if (PLATFORM.contains("windows")) {
707709
env.LIB_DIR = env.LIB_DIR.replaceAll("\\\\", "/")
708710
env.SYSTEM_LIB_DIR = env.SYSTEM_LIB_DIR.replaceAll("\\\\", "/")
709711
}
710712
if (env.BUILD_LIST == 'system') {
711713
env.LIB_DIR = env.SYSTEM_LIB_DIR
714+
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
712715
}
713-
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
714716
}
715717
} catch (Exception e) {
716718
echo 'Exception: ' + e.toString()

0 commit comments

Comments
 (0)