File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ Release:
257
257
set +x
258
258
259
259
export OMRS_VERSION=${bamboo.maven.release.version}
260
+ export OMRS_DEV_VERSION=${maven.development.version}
260
261
export IMAGE=${bamboo.docker.image.name}:${OMRS_VERSION}
261
262
export DEV_IMAGE=${bamboo.docker.image.name}:${OMRS_VERSION}-dev
262
263
export BUILD_IMAGE=${bamboo.docker.image.id}
@@ -299,8 +300,15 @@ Release:
299
300
(
300
301
echo "Updating the main branch to a new SNAPSHOT version"
301
302
git push
303
+
304
+ echo "Setting the next development version"
305
+
302
306
docker run --rm -v m2-repo:/root/.m2/repository -v $(pwd):/openmrs_core \
303
- ${DEV_IMAGE} mvn versions:set -DnextSnapshot=true -DgenerateBackupPoms=false
307
+ if [ -z "$OMRS_DEV_VERSION" ]; then
308
+ ${DEV_IMAGE} mvn versions:set -DnextSnapshot=true -DgenerateBackupPoms=false
309
+ else
310
+ ${DEV_IMAGE} mvn versions:set -DnewVersion=${OMRS_DEV_VERSION} -DgenerateBackupPoms=false
311
+ fi
304
312
305
313
git commit -am "Setting new SNAPSHOT version"
306
314
git push
You can’t perform that action at this time.
0 commit comments