HHH-17297 Adapt limited support testing for 6.2
This commit is contained in:
parent
38c3f6ff79
commit
b048503b19
|
@ -86,9 +86,9 @@ stage('Configure') {
|
||||||
|
|
||||||
// Avoid running the pipeline on branch indexing
|
// Avoid running the pipeline on branch indexing
|
||||||
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
||||||
print "INFO: Build skipped due to trigger being Branch Indexing"
|
print "INFO: Build skipped due to trigger being Branch Indexing"
|
||||||
currentBuild.result = 'ABORTED'
|
currentBuild.result = 'NOT_BUILT'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
// Avoid running the pipeline on branch indexing
|
// Avoid running the pipeline on branch indexing
|
||||||
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
||||||
print "INFO: Build skipped due to trigger being Branch Indexing"
|
print "INFO: Build skipped due to trigger being Branch Indexing"
|
||||||
currentBuild.result = 'ABORTED'
|
currentBuild.result = 'NOT_BUILT'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
@ -31,6 +31,8 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
// Don't build the TCK on PRs, unless they use the tck label
|
// Don't build the TCK on PRs, unless they use the tck label
|
||||||
if ( env.CHANGE_ID && !pullRequest.labels.contains( 'tck' ) ) {
|
if ( env.CHANGE_ID && !pullRequest.labels.contains( 'tck' ) ) {
|
||||||
|
print "INFO: Build skipped because pull request doesn't have 'tck' label"
|
||||||
|
currentBuild.result = 'NOT_BUILT'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
|
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
// Avoid running the pipeline on branch indexing
|
// Avoid running the pipeline on branch indexing
|
||||||
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
||||||
print "INFO: Build skipped due to trigger being Branch Indexing"
|
print "INFO: Build skipped due to trigger being Branch Indexing"
|
||||||
currentBuild.result = 'ABORTED'
|
currentBuild.result = 'NOT_BUILT'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
@ -29,6 +29,12 @@ pipeline {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
// Don't build the TCK on PRs, unless they use the tck label
|
||||||
|
if ( env.CHANGE_ID && !pullRequest.labels.contains( 'tck' ) ) {
|
||||||
|
print "INFO: Build skipped because pull request doesn't have 'tck' label"
|
||||||
|
currentBuild.result = 'NOT_BUILT'
|
||||||
|
return
|
||||||
|
}
|
||||||
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
|
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
|
||||||
docker.image('openjdk:11-jdk').pull()
|
docker.image('openjdk:11-jdk').pull()
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
// Avoid running the pipeline on branch indexing
|
// Avoid running the pipeline on branch indexing
|
||||||
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
||||||
print "INFO: Build skipped due to trigger being Branch Indexing"
|
print "INFO: Build skipped due to trigger being Branch Indexing"
|
||||||
currentBuild.result = 'ABORTED'
|
currentBuild.result = 'NOT_BUILT'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
|
|
||||||
// Avoid running the pipeline on branch indexing
|
// Avoid running the pipeline on branch indexing
|
||||||
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
||||||
print "INFO: Build skipped due to trigger being Branch Indexing"
|
print "INFO: Build skipped due to trigger being Branch Indexing"
|
||||||
currentBuild.result = 'ABORTED'
|
currentBuild.result = 'NOT_BUILT'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
|
@ -66,9 +66,9 @@ stage('Configure') {
|
||||||
|
|
||||||
// Avoid running the pipeline on branch indexing
|
// Avoid running the pipeline on branch indexing
|
||||||
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
||||||
print "INFO: Build skipped due to trigger being Branch Indexing"
|
print "INFO: Build skipped due to trigger being Branch Indexing"
|
||||||
currentBuild.result = 'ABORTED'
|
currentBuild.result = 'NOT_BUILT'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
|
Loading…
Reference in New Issue