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