Skip to content

Commit

Permalink
skip win-RS1 on PRs unless the checkbox is checked
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Signed-off-by: Tibor Vass <tibor@docker.com>
  • Loading branch information
andrewhsu committed Sep 12, 2019
1 parent ad71802 commit 039eb05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Jenkinsfile
Expand Up @@ -12,7 +12,7 @@ pipeline {
booleanParam(name: 'amd64', defaultValue: true, description: 'amd64 (x86_64) 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: 'windowsRS1', defaultValue: true, description: 'Windows 2016 (RS1) 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: 'skip_dco', defaultValue: false, description: 'Skip the DCO check')
}
Expand Down Expand Up @@ -728,7 +728,11 @@ pipeline {
stage('win-RS1') {
when {
beforeAgent true
expression { params.windowsRS1 }
// Skip this stage on PRs unless the windowsRS1 checkbox is selected
anyOf {
not { changeRequest() }
expression { params.windowsRS1 }
}
}
environment {
DOCKER_BUILDKIT = '0'
Expand Down

0 comments on commit 039eb05

Please sign in to comment.