Skip to content
Draft
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
9 changes: 8 additions & 1 deletion buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ def makeTest(testParam) {
if (env.DYNAMIC_COMPILE) {
makeTestCmd = "$RESOLVED_MAKE;cd ./aqa-tests; . ./scripts/testenv/testenvSettings.sh;cd ./TKG; \$MAKE $testParam"
}
if (!env.JVM_OPTIONS?.trim()) {
Comment thread
andrew-m-leonard marked this conversation as resolved.
makeTestCmd = "unset JVM_OPTIONS; $makeTestCmd"
}
//unset LD_LIBRARY_PATH workaround for issue https://github.com/adoptium/infrastructure/issues/2934
if (JDK_IMPL == 'hotspot' && PLATFORM.contains('alpine-linux')) {
makeTestCmd = "unset LD_LIBRARY_PATH; $makeTestCmd"
Expand Down Expand Up @@ -375,11 +378,15 @@ def setupParallelEnv() {
// NUM_LIST can be different than numOfMachines.
def genParallelList(PARALLEL_OPTIONS) {
String unsetLLP = ""
String unsetJvmOptions = ""
if (!env.JVM_OPTIONS?.trim()) {
unsetJvmOptions = "unset JVM_OPTIONS;"
}
//unset LD_LIBRARY_PATH workaround for issue https://github.com/adoptium/infrastructure/issues/2934
if (JDK_IMPL == 'hotspot' && PLATFORM.contains('alpine-linux')) {
unsetLLP = "unset LD_LIBRARY_PATH;"
}
sh "cd ./aqa-tests/TKG; $RESOLVED_MAKE; ${unsetLLP} \$MAKE genParallelList ${PARALLEL_OPTIONS}"
sh "cd ./aqa-tests/TKG; $RESOLVED_MAKE; ${unsetJvmOptions} ${unsetLLP} \$MAKE genParallelList ${PARALLEL_OPTIONS}"
def parallelList = "aqa-tests/TKG/parallelList.mk"
int NUM_LIST = -1
if (fileExists("${parallelList}")) {
Expand Down