Skip to content

Commit

Permalink
Fix release versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Jun 16, 2017
1 parent fda92f5 commit 4b09ec1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gradle/ciBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ elif [ -z $CIRCLE_TAG ]; then
echo -e ?'Build Branch with Snapshot => Branch ['$CIRCLE_BRANCH']'
./gradlew clean build $SWITCHES
elif [ $CIRCLE_TAG ]; then
echo -e 'Build Branch for Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG']'
RELEASE_VERSION=$(echo $CIRCLE_TAG | sed 's/^v\(.*\)/\1/')
echo -e 'Build Branch for Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG'] Version ['$RELEASE_VERSION']'
case "$CIRCLE_TAG" in
*-rc\.*)
./gradlew -Prelease.disableGitChecks=true -Prelease.version=$CIRCLE_TAG clean build candidate $SWITCHES
./gradlew -Prelease.disableGitChecks=true -Prelease.version=$RELEASE_VERSION clean build candidate $SWITCHES
;;
*)
./gradlew -Prelease.disableGitChecks=true -Prelease.version=$CIRCLE_TAG clean build final $SWITCHES
./gradlew -Prelease.disableGitChecks=true -Prelease.version=$RELEASE_VERSION clean build final $SWITCHES
;;
esac
else
Expand Down

0 comments on commit 4b09ec1

Please sign in to comment.