Update Jenkinsfile according to Java 8 build pipeline configuration.

See #2120
This commit is contained in:
Mark Paluch 2022-03-24 09:30:20 +01:00
parent ea0ac3f7bc
commit a2cee9defd
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1

11
Jenkinsfile vendored
View File

@ -9,7 +9,7 @@ pipeline {
triggers { triggers {
pollSCM 'H/10 * * * *' pollSCM 'H/10 * * * *'
upstream(upstreamProjects: "spring-data-commons/main", threshold: hudson.model.Result.SUCCESS) upstream(upstreamProjects: "spring-data-commons/2.7.x", threshold: hudson.model.Result.SUCCESS)
} }
options { options {
@ -20,8 +20,9 @@ pipeline {
stages { stages {
stage("test: baseline (main)") { stage("test: baseline (main)") {
when { when {
beforeAgent(true)
anyOf { anyOf {
branch 'main' branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' } not { triggeredBy 'UpstreamCause' }
} }
} }
@ -50,8 +51,9 @@ pipeline {
stage("Test other configurations") { stage("Test other configurations") {
when { when {
beforeAgent(true)
allOf { allOf {
branch 'main' branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' } not { triggeredBy 'UpstreamCause' }
} }
} }
@ -108,8 +110,9 @@ pipeline {
stage('Release to artifactory') { stage('Release to artifactory') {
when { when {
beforeAgent(true)
anyOf { anyOf {
branch 'main' branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' } not { triggeredBy 'UpstreamCause' }
} }
} }