Skip to content

Commit

Permalink
Merge pull request #5501 from jdekonin/zos
Browse files Browse the repository at this point in the history
Update build script to reference new platform name
  • Loading branch information
pshipton committed Apr 15, 2019
2 parents d81a32d + 1e3de18 commit ab4fc8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildenv/jenkins/common/build
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ab4fc8a

Please sign in to comment.