Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a variable to set the next development version on Bamboo #4833

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion bamboo-specs/bamboo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ Release:
set +x

export OMRS_VERSION=${bamboo.maven.release.version}
export OMRS_DEV_VERSION=${maven.development.version}
export IMAGE=${bamboo.docker.image.name}:${OMRS_VERSION}
export DEV_IMAGE=${bamboo.docker.image.name}:${OMRS_VERSION}-dev
export BUILD_IMAGE=${bamboo.docker.image.id}
Expand Down Expand Up @@ -299,8 +300,15 @@ Release:
(
echo "Updating the main branch to a new SNAPSHOT version"
git push

echo "Setting the next development version"

docker run --rm -v m2-repo:/root/.m2/repository -v $(pwd):/openmrs_core \
${DEV_IMAGE} mvn versions:set -DnextSnapshot=true -DgenerateBackupPoms=false
if [ -z "$OMRS_DEV_VERSION" ]; then
${DEV_IMAGE} mvn versions:set -DnextSnapshot=true -DgenerateBackupPoms=false
else
${DEV_IMAGE} mvn versions:set -DnewVersion=${OMRS_DEV_VERSION} -DgenerateBackupPoms=false
fi

git commit -am "Setting new SNAPSHOT version"
git push
Expand Down
Loading