Skip to content

Commit

Permalink
added customurl
Browse files Browse the repository at this point in the history
  • Loading branch information
annaibm committed May 23, 2024
1 parent a5246bd commit 7f2f379
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,10 @@ def setupParallelEnv() {
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 {
if (env.BUILD_LIST == 'system') {
env.LIB_DIR = env.SYSTEM_LIB_DIR
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.SYSTEM_LIB_DIR} -task default -customUrl ${customUrl}"
}
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
}
} catch (Exception e) {
echo 'Exception: ' + e.toString()
Expand Down Expand Up @@ -1078,7 +1076,10 @@ def getCustomUrl() {
if (jenkinsDomain.contains("hyc-runtimes")) {
jenkinsDomain = "openj9-jenkins.osuosl.org"
}
def customUrl = "https://${jenkinsDomain}/job/test.getDependency/lastSuccessfulBuild/artifact/"
def customUrl = "https://${jenkinsDomain}/job/test.getDependency/lastSuccessfulBuild/artifact/"
if (env.BUILD_LIST == 'system') {
customUrl = "https://ci.adoptium.net/job/systemtest.getDependency/lastSuccessfulBuild/artifact/"
}
echo "Custom URL: ${customUrl}"
return customUrl
}
Expand Down

0 comments on commit 7f2f379

Please sign in to comment.