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 23ac16c commit 7e199feCopy full SHA for 7e199fe
Jenkinsfile
@@ -100,8 +100,9 @@ stage('Build') {
100
Map<String, Closure> executions = [:]
101
Map<String, Map<String, String>> state = [:]
102
environments.each { BuildEnvironment buildEnv ->
103
- // Don't build environments for newer JDKs when this is a PR
104
- 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 &&
105
+ !pullRequest.labels.contains( 'jdk' ) && !pullRequest.labels.contains( "jdk-${buildEnv.testJdkVersion}" ) ) {
106
return
107
}
108
state[buildEnv.tag] = [:]
0 commit comments