File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ pipeline {
38
38
}
39
39
stage(' Release to artifactory' ) {
40
40
when {
41
- branch ' issue/*'
42
- not { triggeredBy ' UpstreamCause' }
41
+ anyOf {
42
+ branch ' master'
43
+ not { triggeredBy ' UpstreamCause' }
44
+ }
43
45
}
44
46
agent {
45
47
docker {
@@ -66,7 +68,7 @@ pipeline {
66
68
' -Dmaven.test.skip=true clean deploy -B'
67
69
}
68
70
}
69
- stage(' Release to artifactory with docs ' ) {
71
+ stage(' Publish documentation ' ) {
70
72
when {
71
73
branch ' master'
72
74
}
@@ -84,14 +86,11 @@ pipeline {
84
86
}
85
87
86
88
steps {
87
- sh ' rm -rf ?'
88
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
89
+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
89
90
' -Dartifactory.server=https://repo.spring.io ' +
90
91
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
91
92
" -Dartifactory.password=${ ARTIFACTORY_PSW} " +
92
- " -Dartifactory.staging-repository=libs-snapshot-local " +
93
- " -Dartifactory.build-name=spring-data-commons " +
94
- " -Dartifactory.build-number=${ BUILD_NUMBER} " +
93
+ " -Dartifactory.distribution-repository=temp-private-local " +
95
94
' -Dmaven.test.skip=true clean deploy -B'
96
95
}
97
96
}
You can’t perform that action at this time.
0 commit comments