Skip to content

Commit

Permalink
Support custom target with variation (adoptium#4568)
Browse files Browse the repository at this point in the history
resolves: adoptium#4495

Signed-off-by: Lan Xia <[email protected]>
Co-authored-by: LongyuZhang <[email protected]>
  • Loading branch information
llxia and LongyuZhang committed May 9, 2023
1 parent 84697ed commit 6ff1db2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,9 @@ def runTest( ) {
if (TARGET == 'system_custom') {
env.SYSTEM_CUSTOM_TARGET=CUSTOM_TARGET
} else {
CUSTOM_OPTION = "${TARGET.toUpperCase()}_TARGET='${CUSTOM_TARGET}'"
// remove suffix, then set CUSTOM_OPTION (i.e., jdk_custom_0 will become jdk_custom)
def removeSuffix = TARGET.replaceAll(/_\d+$/, "")
CUSTOM_OPTION = "${removeSuffix.toUpperCase()}_TARGET='${CUSTOM_TARGET}'"
}
}
if (!TARGET.startsWith('-f')) {
Expand Down

0 comments on commit 6ff1db2

Please sign in to comment.