Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom TKG repo and branch/sha/tag to be set in getDependency #5284

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions buildenv/jenkins/getDependency
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,19 @@ def testBuild() {
archiveArtifacts '**/systemtest_prereqs/asm/asm.jar'
archiveArtifacts '**/systemtest_prereqs/tools/tools.jar'
} else {
sh 'curl -Os https://raw.githubusercontent.com/adoptium/TKG/master/scripts/getDependencies.pl'
sh 'perl ./getDependencies.pl -path . -task default'
archiveArtifacts '*.jar, *.zip, *.txt, *.gz'
def TKG_OWNER_BRANCH = params.TKG_OWNER_BRANCH ?: "adoptium:master"
def tokens = TKG_OWNER_BRANCH.split(':');
if (tokens.size() == 2) {
def owner = tokens[0];
def branch = tokens[1];
sh "curl -Os https://raw.githubusercontent.com/${owner}/TKG/${branch}/scripts/getDependencies.pl"
sh 'perl ./getDependencies.pl -path . -task default'
archiveArtifacts '*.jar, *.zip, *.txt, *.gz'
} else {
assert false : "TKG_OWNER_BRANCH ${TKG_OWNER_BRANCH} is not expected format. (i.e., TKG_OWNER_BRANCH=adoptium:master)"
}


}
} finally {
cleanWs()
Expand Down