mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-22 15:13:41 -06:00
add release trigger
This commit is contained in:
parent
5b30ca9a36
commit
828191742e
21
scripts/trigger-release-build
Executable file
21
scripts/trigger-release-build
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd mvn-defaults
|
||||||
|
#set -x
|
||||||
|
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)
|
||||||
|
RELEASE_VERSION=${CURRENT_VERSION%%-SNAPSHOT}
|
||||||
|
RELEASE_TAG="${RELEASE_VERSION}-release"
|
||||||
|
printf "release tag: '%s'\n" "${RELEASE_TAG}"
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" == "-f" ]
|
||||||
|
then
|
||||||
|
git tag -f "${RELEASE_TAG}" \
|
||||||
|
&& git push -f origin "${RELEASE_TAG}" \
|
||||||
|
&& printf "force pushed tag %s to origin, triggering build.\n" "${RELEASE_TAG}"
|
||||||
|
else
|
||||||
|
git tag "${RELEASE_TAG}" \
|
||||||
|
&& git push origin "${RELEASE_TAG}" \
|
||||||
|
&& printf "pushed tag %s to origin, triggering build.\n" "${RELEASE_TAG}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user