Skip to content

Commit 274b8e0

Browse files
Support testing snapshots from all branches.
1 parent 5acf33f commit 274b8e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ pipeline {
3636
}
3737

3838
stage('upload-to-repo') {
39-
// By default, only dev and master branches deploy to repo to avoid messing in the same SNAPSHOT version
40-
// (e.g. this avoids integration tests to pick it up the version).
41-
when { expression { return BRANCH_NAME == 'dev' || BRANCH_NAME == 'master' } }
39+
// Note: to avoid conflicts between snapshot versions, add the branch name
40+
// before '-SNAPSHOT' to the version string, like '1.2.3-branch-SNAPSHOT'
41+
when { expression { return BRANCH_NAME != 'publish' } }
4242
steps {
4343
sh './gradlew --stacktrace -PpreferedRepo=local uploadArchives'
4444
}

0 commit comments

Comments
 (0)