Skip to content

Commit ca5154a

Browse files
committed
[Build] Update submodules to remote tip only on non-maintenance branches
This prevents maintenance branches from fetching the latest changes on the master branches of all submodules and therefore failing all builds early (because the submodule expect a newer parent-pom version). Follow-up on: - eclipse-platform#3000
1 parent 9eda991 commit ca5154a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Jenkinsfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ pipeline {
1616
MAVEN_OPTS = '-Xmx4000m'
1717
}
1818
stages {
19+
stage('Update submodules to latest') {
20+
when {
21+
not { branch 'R*_maintenance' }
22+
}
23+
steps {
24+
sh 'git submodule update --remote'
25+
}
26+
}
1927
stage('Deploy parent-pom and SDK-target') {
2028
when {
2129
anyOf {

0 commit comments

Comments
 (0)