From 1e3de18a4c3dc9d67fbd800072202be7a56b8432 Mon Sep 17 00:00:00 2001 From: Joe deKoning Date: Mon, 15 Apr 2019 15:04:42 -0400 Subject: [PATCH] Update build script to reference new platform name * [skip ci] Signed-off-by: Joe deKoning --- buildenv/jenkins/common/build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildenv/jenkins/common/build b/buildenv/jenkins/common/build index 35080f50fd6..89341f4b7eb 100644 --- a/buildenv/jenkins/common/build +++ b/buildenv/jenkins/common/build @@ -45,7 +45,7 @@ def get_source() { // use sshagent with Jenkins credentials ID for all platforms except zOS // on zOS use the user's ssh key - if (!SPEC.startsWith('zos') && (USER_CREDENTIALS_ID != '')) { + if (!SPEC.contains('zos') && (USER_CREDENTIALS_ID != '')) { get_sources_with_authentication() } else { get_sources() @@ -269,7 +269,7 @@ def build() { stage('Compile') { timestamps { // 'all' target dependencies broken for zos, use 'images test-image-openj9' - def make_target = SPEC.startsWith('zos') ? 'images test-image-openj9' : 'all' + def make_target = SPEC.contains('zos') ? 'images test-image-openj9' : 'all' OPENJDK_CLONE_DIR = "${env.WORKSPACE}/${OPENJDK_CLONE_DIR}" withEnv(BUILD_ENV_VARS_LIST) { dir(OPENJDK_CLONE_DIR) { @@ -297,7 +297,7 @@ def archive() { sh "tar -C ${buildDir} -zcvf ${SDK_FILENAME} ${JDK_FOLDER}" // test if the test natives directory is present, only in JDK11+ if (fileExists("${buildDir}${testDir}")) { - if (SPEC.startsWith('zos')) { + if (SPEC.contains('zos')) { // Note: to preserve the files ACLs set _OS390_USTAR=Y env variable (see variable files) sh "pax -wvz -s#${buildDir}${testDir}#native-test-libs#g -f ${TEST_FILENAME} ${buildDir}${testDir}" } else {