Skip to content

Commit 0273cc2

Browse files
committed
Polishing.
Update upstream build triggers. See #73
1 parent f337952 commit 0273cc2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Jenkinsfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ pipeline {
99

1010
triggers {
1111
pollSCM 'H/10 * * * *'
12-
upstream(upstreamProjects: "spring-data-commons/master,spring-data-cassandra/master,spring-data-couchbase/master,spring-data-elasticsearch/master,spring-data-gemfire/master," +
13-
"spring-data-geode/master,spring-data-jpa/master,spring-data-ldap/master,spring-data-mongodb/master,spring-data-neo4j/master,spring-data-redis/master,spring-data-solr/master", threshold: hudson.model.Result.SUCCESS)
12+
upstream(upstreamProjects: "spring-data-commons/2.5.x,spring-data-cassandra/2.5.x,spring-data-couchbase/4.2.x,spring-data-elasticsearch/4.2.x," +
13+
"spring-data-geode/2.5.x,spring-data-jpa/2.5.x,spring-data-ldap/2.5.x,spring-data-mongodb/3.2.x,spring-data-neo4j/6.1.x,spring-data-redis/2.5.x", threshold: hudson.model.Result.SUCCESS)
1414
}
1515

1616
options {
@@ -21,8 +21,9 @@ pipeline {
2121
stages {
2222
stage('Verify BOM Dependencies') {
2323
when {
24+
beforeAgent(true)
2425
anyOf {
25-
branch 'master'
26+
branch(pattern: "main|(\\d+\\.\\d+\\.x)", comparator: "REGEXP")
2627
not { triggeredBy 'UpstreamCause' }
2728
}
2829
}
@@ -48,8 +49,9 @@ pipeline {
4849

4950
stage('Build project and release to artifactory') {
5051
when {
52+
beforeAgent(true)
5153
anyOf {
52-
branch 'master'
54+
branch(pattern: "main|(\\d+\\.\\d+\\.x)", comparator: "REGEXP")
5355
not { triggeredBy 'UpstreamCause' }
5456
}
5557
}

0 commit comments

Comments
 (0)