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 @@ -77,8 +77,10 @@ pipeline {
77
77
78
78
stage(' Release to artifactory' ) {
79
79
when {
80
- branch ' issue/*'
81
- not { triggeredBy ' UpstreamCause' }
80
+ anyOf {
81
+ branch ' master'
82
+ not { triggeredBy ' UpstreamCause' }
83
+ }
82
84
}
83
85
agent {
84
86
docker {
@@ -106,7 +108,7 @@ pipeline {
106
108
}
107
109
}
108
110
109
- stage(' Release to artifactory with docs ' ) {
111
+ stage(' Publish documentation ' ) {
110
112
when {
111
113
branch ' master'
112
114
}
@@ -124,14 +126,11 @@ pipeline {
124
126
}
125
127
126
128
steps {
127
- sh ' rm -rf ?'
128
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
129
+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
129
130
' -Dartifactory.server=https://repo.spring.io ' +
130
131
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
131
132
" -Dartifactory.password=${ ARTIFACTORY_PSW} " +
132
- " -Dartifactory.staging-repository=libs-snapshot-local " +
133
- " -Dartifactory.build-name=spring-data-redis " +
134
- " -Dartifactory.build-number=${ BUILD_NUMBER} " +
133
+ " -Dartifactory.distribution-repository=temp-private-local " +
135
134
' -Dmaven.test.skip=true clean deploy -B'
136
135
}
137
136
}
You can’t perform that action at this time.
0 commit comments