HHH-17297 Adapt limited support testing for 6.2

This commit is contained in:
Christian Beikov 2023-10-06 15:01:00 +02:00
parent 38c3f6ff79
commit b048503b19
6 changed files with 24 additions and 16 deletions

2
Jenkinsfile vendored
View File

@ -87,7 +87,7 @@ stage('Configure') {
// Avoid running the pipeline on branch indexing
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'ABORTED'
currentBuild.result = 'NOT_BUILT'
return
}

View File

@ -3,7 +3,7 @@
// Avoid running the pipeline on branch indexing
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'ABORTED'
currentBuild.result = 'NOT_BUILT'
return
}
@ -31,6 +31,8 @@ pipeline {
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') {

View File

@ -3,7 +3,7 @@
// Avoid running the pipeline on branch indexing
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'ABORTED'
currentBuild.result = 'NOT_BUILT'
return
}
@ -29,6 +29,12 @@ pipeline {
stage('Build') {
steps {
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.image('openjdk:11-jdk').pull()
}

View File

@ -14,7 +14,7 @@
// Avoid running the pipeline on branch indexing
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'ABORTED'
currentBuild.result = 'NOT_BUILT'
return
}

View File

@ -6,7 +6,7 @@
// Avoid running the pipeline on branch indexing
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'ABORTED'
currentBuild.result = 'NOT_BUILT'
return
}

View File

@ -67,7 +67,7 @@ stage('Configure') {
// Avoid running the pipeline on branch indexing
if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'ABORTED'
currentBuild.result = 'NOT_BUILT'
return
}