@@ -8,11 +8,11 @@ pipeline {
88 timestamps()
99 }
1010 parameters {
11- booleanParam(name : ' unit_validate' , defaultValue : true , description : ' x86 unit tests and vendor check' )
12- booleanParam(name : ' janky ' , defaultValue : true , description : ' x86 Build/Test' )
13- booleanParam(name : ' z ' , defaultValue : true , description : ' IBM Z (s390x) Build/Test' )
14- booleanParam(name : ' powerpc ' , defaultValue : true , description : ' PowerPC (ppc64le) Build/Test' )
15- booleanParam(name : ' windowsRS1' , defaultValue : true , description : ' Windows 2016 (RS1) Build/Test' )
11+ booleanParam(name : ' unit_validate' , defaultValue : true , description : ' amd64 (x86_64) unit tests and vendor check' )
12+ booleanParam(name : ' amd64 ' , defaultValue : true , description : ' amd64 (x86_64) Build/Test' )
13+ booleanParam(name : ' s390x ' , defaultValue : true , description : ' IBM Z (s390x) Build/Test' )
14+ booleanParam(name : ' ppc64le ' , defaultValue : true , description : ' PowerPC (ppc64le) Build/Test' )
15+ booleanParam(name : ' windowsRS1' , defaultValue : false , description : ' Windows 2016 (RS1) Build/Test' )
1616 booleanParam(name : ' windowsRS5' , defaultValue : true , description : ' Windows 2019 (RS5) Build/Test' )
1717 booleanParam(name : ' skip_dco' , defaultValue : false , description : ' Skip the DCO check' )
1818 }
@@ -219,10 +219,10 @@ pipeline {
219219 }
220220 }
221221 }
222- stage(' janky ' ) {
222+ stage(' amd64 ' ) {
223223 when {
224224 beforeAgent true
225- expression { params. janky }
225+ expression { params. amd64 }
226226 }
227227 agent { label ' amd64 && ubuntu-1804 && overlay2' }
228228
@@ -325,7 +325,7 @@ pipeline {
325325
326326 catchError(buildResult : ' SUCCESS' , stageResult : ' FAILURE' , message : ' Failed to create bundles.tar.gz' ) {
327327 sh '''
328- bundleName=janky
328+ bundleName=amd64
329329 echo "Creating ${bundleName}-bundles.tar.gz"
330330 # exclude overlay2 directories
331331 find bundles -path '*/root/*overlay2' -prune -o -type f \\ ( -name '*.log' -o -name '*.prof' \\ ) -print | xargs tar -czf ${bundleName}-bundles.tar.gz
@@ -340,10 +340,10 @@ pipeline {
340340 }
341341 }
342342 }
343- stage(' z ' ) {
343+ stage(' s390x ' ) {
344344 when {
345345 beforeAgent true
346- expression { params. z }
346+ expression { params. s39 0x }
347347 }
348348 agent { label ' s390x-ubuntu-1604' }
349349 // s390x machines run on Docker 18.06, and buildkit has some bugs on that version
@@ -437,11 +437,11 @@ pipeline {
437437 }
438438 }
439439 }
440- stage(' z-master ' ) {
440+ stage(' s390x integration-cli ' ) {
441441 when {
442442 beforeAgent true
443- branch ' master '
444- expression { params. z }
443+ not { changeRequest() }
444+ expression { params. s39 0x }
445445 }
446446 agent { label ' s390x-ubuntu-1604' }
447447 // s390x machines run on Docker 18.06, and buildkit has some bugs on that version
@@ -515,13 +515,13 @@ pipeline {
515515 }
516516 }
517517 }
518- stage(' powerpc ' ) {
518+ stage(' ppc64le ' ) {
519519 when {
520520 beforeAgent true
521- expression { params. powerpc }
521+ expression { params. ppc64le }
522522 }
523523 agent { label ' ppc64le-ubuntu-1604' }
524- // power machines run on Docker 18.06, and buildkit has some bugs on that version
524+ // ppc64le machines run on Docker 18.06, and buildkit has some bugs on that version
525525 environment { DOCKER_BUILDKIT = ' 0' }
526526
527527 stages {
@@ -595,7 +595,7 @@ pipeline {
595595
596596 catchError(buildResult : ' SUCCESS' , stageResult : ' FAILURE' , message : ' Failed to create bundles.tar.gz' ) {
597597 sh '''
598- bundleName=powerpc -integration
598+ bundleName=ppc64le -integration
599599 echo "Creating ${bundleName}-bundles.tar.gz"
600600 # exclude overlay2 directories
601601 find bundles -path '*/root/*overlay2' -prune -o -type f \\ ( -name '*.log' -o -name '*.prof' \\ ) -print | xargs tar -czf ${bundleName}-bundles.tar.gz
@@ -610,14 +610,14 @@ pipeline {
610610 }
611611 }
612612 }
613- stage(' powerpc-master ' ) {
613+ stage(' ppc64le integration-cli ' ) {
614614 when {
615615 beforeAgent true
616- branch ' master '
617- expression { params. powerpc }
616+ not { changeRequest() }
617+ expression { params. ppc64le }
618618 }
619619 agent { label ' ppc64le-ubuntu-1604' }
620- // power machines run on Docker 18.06, and buildkit has some bugs on that version
620+ // ppc64le machines run on Docker 18.06, and buildkit has some bugs on that version
621621 environment { DOCKER_BUILDKIT = ' 0' }
622622
623623 stages {
@@ -671,7 +671,7 @@ pipeline {
671671
672672 catchError(buildResult : ' SUCCESS' , stageResult : ' FAILURE' , message : ' Failed to create bundles.tar.gz' ) {
673673 sh '''
674- bundleName=powerpc -integration-cli
674+ bundleName=ppc64le -integration-cli
675675 echo "Creating ${bundleName}-bundles.tar.gz"
676676 # exclude overlay2 directories
677677 find bundles -path '*/root/*overlay2' -prune -o -type f \\ ( -name '*.log' -o -name '*.prof' \\ ) -print | xargs tar -czf ${bundleName}-bundles.tar.gz
@@ -686,10 +686,14 @@ pipeline {
686686 }
687687 }
688688 }
689- stage(' windowsRS1 ' ) {
689+ stage(' win-RS1 ' ) {
690690 when {
691691 beforeAgent true
692- expression { params. windowsRS1 }
692+ // Skip this stage on PRs unless the windowsRS1 checkbox is selected
693+ anyOf {
694+ not { changeRequest() }
695+ expression { params. windowsRS1 }
696+ }
693697 }
694698 environment {
695699 DOCKER_BUILDKIT = ' 0'
@@ -727,7 +731,7 @@ pipeline {
727731 }
728732 }
729733 }
730- stage(' windowsRS5-process ' ) {
734+ stage(' win-RS5 ' ) {
731735 when {
732736 beforeAgent true
733737 expression { params. windowsRS5 }
0 commit comments