1 parent 5acf33f commit 274b8e0Copy full SHA for 274b8e0
1 file changed
Jenkinsfile
@@ -36,9 +36,9 @@ pipeline {
36
}
37
38
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' } }
+ // Note: to avoid conflicts between snapshot versions, add the branch name
+ // before '-SNAPSHOT' to the version string, like '1.2.3-branch-SNAPSHOT'
+ when { expression { return BRANCH_NAME != 'publish' } }
42
steps {
43
sh './gradlew --stacktrace -PpreferedRepo=local uploadArchives'
44
0 commit comments