Skip to content

Commit 139d85d

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 139d85d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Jenkinsfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ pipeline {
1616
MAVEN_OPTS = '-Xmx4000m'
1717
}
1818
stages {
19+
stage('Update submodules to latest') {
20+
//TODO: change branch in the .gitmodules on maintanance branching. Otherwise maintanance branches would always use the latest submodule from master?!
21+
when {
22+
not { branch 'R*_maintenance' }
23+
}
24+
steps {
25+
sh 'git submodule update --remote'
26+
}
27+
}
1928
stage('Deploy parent-pom and SDK-target') {
2029
when {
2130
anyOf {

0 commit comments

Comments
 (0)