File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- distributionUrl =https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0 /apache-maven-3.5.0 -bin.zip
1+ distributionUrl =https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.9.4 /apache-maven-3.9.4 -bin.zip
Original file line number Diff line number Diff line change @@ -159,12 +159,15 @@ pipeline {
159159
160160 steps {
161161 script {
162+
162163 docker. image(" ${ p['docker.java.build.image-proxy']} " ). inside(p[' docker.java.inside.basic' ]) {
163164 PROJECT_VERSION = sh(
164165 script : " ci/version.sh" ,
165166 returnStdout : true
166167 ). trim()
167168
169+ echo " Releasing Spring WS ${ PROJECT_VERSION} ..."
170+
168171 if (PROJECT_VERSION . matches(/ .*-RC[0-9]+$/ ) || PROJECT_VERSION . matches(/ .*-M[0-9]+$/ )) {
169172 RELEASE_TYPE = " milestone"
170173 } else if (PROJECT_VERSION . endsWith(' SNAPSHOT' )) {
@@ -175,6 +178,8 @@ pipeline {
175178 RELEASE_TYPE = ' snapshot'
176179 }
177180
181+ echo " Release type: ${ RELEASE_TYPE} "
182+
178183 if (RELEASE_TYPE == ' release' ) {
179184
180185 STAGING_REPOSITORY_ID = sh(
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- RAW_VERSION=` MAVEN_OPTS=" -Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw \
6- org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \
7- -Dgradle.cache.local.enabled=false -Dgradle.cache.remote.enabled=false \
8- -Dexpression=project.version -q -DforceStdout`
5+ VERSION=` MAVEN_OPTS=" -Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw \
6+ org.apache.maven.plugins:maven-help-plugin:3.4.0:evaluate \
7+ -Dexpression=project.version -q -DforceStdout | tail -1`
98
10- # Split things up
11- VERSION_PARTS=($RAW_VERSION )
12-
13- # Grab the last part, which is the actual version number.
14- echo ${VERSION_PARTS[${#VERSION_PARTS[@]} -1]}
9+ echo $VERSION
1510
You can’t perform that action at this time.
0 commit comments