Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 92ec966

Browse files
committed
skip win-RS1 on PRs unless the checkbox is checked
Signed-off-by: Andrew Hsu <andrewhsu@docker.com> Signed-off-by: Tibor Vass <tibor@docker.com> (cherry picked from commit 039eb05ac87d52fe0b268c090f137eaa14754eed) Signed-off-by: Andrew Hsu <andrewhsu@docker.com> Upstream-commit: 36fc8f580947bae899a68171743dce5965a0c08d Component: engine
1 parent f7c741a commit 92ec966

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

components/engine/Jenkinsfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pipeline {
1212
booleanParam(name: 'amd64', defaultValue: true, description: 'amd64 (x86_64) Build/Test')
1313
booleanParam(name: 's390x', defaultValue: true, description: 'IBM Z (s390x) Build/Test')
1414
booleanParam(name: 'ppc64le', defaultValue: true, description: 'PowerPC (ppc64le) Build/Test')
15-
booleanParam(name: 'windowsRS1', defaultValue: true, description: 'Windows 2016 (RS1) 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
}
@@ -689,7 +689,11 @@ pipeline {
689689
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'

0 commit comments

Comments
 (0)