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 78e487dCopy full SHA for 78e487d
Jenkinsfile
@@ -101,8 +101,9 @@ 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' or 'jdk-<version>'
+ if ( helper.scmSource.pullRequest && buildEnv.testJdkVersion &&
106
+ !pullRequest.labels.contains( 'jdk' ) && !pullRequest.labels.contains( "jdk-${buildEnv.testJdkVersion}" ) ) {
107
return
108
}
109
state[buildEnv.tag] = [:]
0 commit comments