Browse code

Jenkinsfile: skip ppc64le and s390x by default on pull requests

This changes CI to skip these platforms by default. The ppc64le and s390x
machines are "pet machines", configuration may be outdated, and these
machines are known to be flaky.

Building and verifying packages for these platforms is being handed
over to the IBM team.

We can still run these platforms for specific pull requests by selecting
the checkboxes.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 82c7e906eaca929d08b885170933be45c0e06d5e)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2021/05/12 19:38:41
Showing 1 changed files
... ...
@@ -14,8 +14,8 @@ pipeline {
14 14
         booleanParam(name: 'rootless', defaultValue: true, description: 'amd64 (x86_64) Build/Test (Rootless mode)')
15 15
         booleanParam(name: 'cgroup2', defaultValue: true, description: 'amd64 (x86_64) Build/Test (cgroup v2)')
16 16
         booleanParam(name: 'arm64', defaultValue: true, description: 'ARM (arm64) Build/Test')
17
-        booleanParam(name: 's390x', defaultValue: true, description: 'IBM Z (s390x) Build/Test')
18
-        booleanParam(name: 'ppc64le', defaultValue: true, description: 'PowerPC (ppc64le) Build/Test')
17
+        booleanParam(name: 's390x', defaultValue: false, description: 'IBM Z (s390x) Build/Test')
18
+        booleanParam(name: 'ppc64le', defaultValue: false, description: 'PowerPC (ppc64le) Build/Test')
19 19
         booleanParam(name: 'windowsRS1', defaultValue: false, description: 'Windows 2016 (RS1) Build/Test')
20 20
         booleanParam(name: 'windowsRS5', defaultValue: true, description: 'Windows 2019 (RS5) Build/Test')
21 21
         booleanParam(name: 'dco', defaultValue: true, description: 'Run the DCO check')
... ...
@@ -547,7 +547,11 @@ pipeline {
547 547
                 stage('s390x') {
548 548
                     when {
549 549
                         beforeAgent true
550
-                        expression { params.s390x }
550
+                        // Skip this stage on PRs unless the checkbox is selected
551
+                        anyOf {
552
+                            not { changeRequest() }
553
+                            expression { params.s390x }
554
+                        }
551 555
                     }
552 556
                     agent { label 's390x-ubuntu-1804' }
553 557
 
... ...
@@ -735,7 +739,11 @@ pipeline {
735 735
                 stage('ppc64le') {
736 736
                     when {
737 737
                         beforeAgent true
738
-                        expression { params.ppc64le }
738
+                        // Skip this stage on PRs unless the checkbox is selected
739
+                        anyOf {
740
+                            not { changeRequest() }
741
+                            expression { params.ppc64le }
742
+                        }
739 743
                     }
740 744
                     agent { label 'ppc64le-ubuntu-1604' }
741 745
                     // ppc64le machines run on Docker 18.06, and buildkit has some