Skip to content

Commit beeb96b

Browse files
Merge pull request #19985 from keithc-ca/docker_build
Improve version check for using a docker image
2 parents 941f56a + 54026ce commit beeb96b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

buildenv/jenkins/common/build.groovy

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def build() {
337337
}
338338

339339
def get_compile_command() {
340-
return "make ${EXTRA_MAKE_OPTIONS} all"
340+
return "make ${EXTRA_MAKE_OPTIONS} all"
341341
}
342342

343343
def archive_sdk() {
@@ -844,9 +844,10 @@ def build_all() {
844844
node("${NODE}") {
845845
timeout(time: 5, unit: 'HOURS') {
846846
if ("${DOCKER_IMAGE}") {
847-
// TODO: remove this workaround when https://github.com/adoptium/infrastructure/issues/3597 resolved. related: infra 9292
848-
if ((PLATFORM ==~ /ppc64le_linux.*/) ||
849-
((PLATFORM ==~ /x86-64_linux.*/) && ((SDK_VERSION.toLowerCase() == 'next') || (SDK_VERSION.toInteger() >= 17)))) {
847+
// TODO: Remove this workaround when https://github.com/adoptium/infrastructure/issues/3597 is resolved. Related: infra 9292.
848+
if ((PLATFORM ==~ /ppc64le_linux.*/)
849+
|| ((PLATFORM ==~ /x86-64_linux.*/) && (!SDK_VERSION.isInteger() || (SDK_VERSION.toInteger() >= 17)))
850+
) {
850851
create_docker_image_locally()
851852
}
852853
prepare_docker_environment()

0 commit comments

Comments
 (0)