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

6
Jenkinsfile vendored
View File

@ -86,9 +86,9 @@ 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'
return
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'NOT_BUILT'
return
}
stage('Build') {

View File

@ -2,9 +2,9 @@
// 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'
return
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'NOT_BUILT'
return
}
pipeline {
@ -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

@ -2,9 +2,9 @@
// 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'
return
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'NOT_BUILT'
return
}
pipeline {
@ -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

@ -5,9 +5,9 @@
// 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'
return
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'NOT_BUILT'
return
}
pipeline {

View File

@ -66,9 +66,9 @@ 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'
return
print "INFO: Build skipped due to trigger being Branch Indexing"
currentBuild.result = 'NOT_BUILT'
return
}
stage('Build') {