From 523f8b397c8a47b8bd1a7c2dd86cbeaa57a70d48 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 12 May 2021 12:38:41 +0200 Subject: [PATCH] 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 (cherry picked from commit 82c7e906eaca929d08b885170933be45c0e06d5e) Signed-off-by: Sebastiaan van Stijn --- Jenkinsfile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 68e73a364a..d22e0fb9f9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,8 +14,8 @@ pipeline { booleanParam(name: 'rootless', defaultValue: true, description: 'amd64 (x86_64) Build/Test (Rootless mode)') booleanParam(name: 'cgroup2', defaultValue: true, description: 'amd64 (x86_64) Build/Test (cgroup v2)') booleanParam(name: 'arm64', defaultValue: true, description: 'ARM (arm64) Build/Test') - booleanParam(name: 's390x', defaultValue: true, description: 'IBM Z (s390x) Build/Test') - booleanParam(name: 'ppc64le', defaultValue: true, description: 'PowerPC (ppc64le) Build/Test') + booleanParam(name: 's390x', defaultValue: false, description: 'IBM Z (s390x) Build/Test') + booleanParam(name: 'ppc64le', defaultValue: false, description: 'PowerPC (ppc64le) Build/Test') booleanParam(name: 'windowsRS1', defaultValue: false, description: 'Windows 2016 (RS1) Build/Test') booleanParam(name: 'windowsRS5', defaultValue: true, description: 'Windows 2019 (RS5) Build/Test') booleanParam(name: 'dco', defaultValue: true, description: 'Run the DCO check') @@ -547,7 +547,11 @@ pipeline { stage('s390x') { when { beforeAgent true - expression { params.s390x } + // Skip this stage on PRs unless the checkbox is selected + anyOf { + not { changeRequest() } + expression { params.s390x } + } } agent { label 's390x-ubuntu-1804' } @@ -735,7 +739,11 @@ pipeline { stage('ppc64le') { when { beforeAgent true - expression { params.ppc64le } + // Skip this stage on PRs unless the checkbox is selected + anyOf { + not { changeRequest() } + expression { params.ppc64le } + } } agent { label 'ppc64le-ubuntu-1604' } // ppc64le machines run on Docker 18.06, and buildkit has some