We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4843cfc commit 381cd3eCopy full SHA for 381cd3e
Jenkinsfile
@@ -101,8 +101,8 @@ stage('Build') {
101
Map<String, Closure> executions = [:]
102
Map<String, Map<String, String>> state = [:]
103
environments.each { BuildEnvironment buildEnv ->
104
- // Don't build environments for newer JDKs when this is a PR
105
- if ( helper.scmSource.pullRequest && buildEnv.testJdkVersion ) {
+ // Don't build environments for newer JDKs when this is a PR, unless the PR is labelled with 'jdk-<version>'
+ if ( helper.scmSource.pullRequest && buildEnv.testJdkVersion && !pullRequest.labels.contains( "jdk-${buildEnv.testJdkVersion}" ) ) {
106
return
107
}
108
state[buildEnv.tag] = [:]
0 commit comments