mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-26 15:36:33 -06:00
script updates
This commit is contained in:
parent
92ef90ca3d
commit
09c41bd2d3
19
scripts/trigger-preview-build
Executable file
19
scripts/trigger-preview-build
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
cd mvn-defaults
|
||||
#set -x
|
||||
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)
|
||||
RELEASE_VERSION=${CURRENT_VERSION%%-SNAPSHOT}
|
||||
PREVIEW_TAG="${RELEASE_VERSION}-preview"
|
||||
printf "preview tag: '%s'\n" "${PREVIEW_TAG}"
|
||||
|
||||
if [ "$1" == "-f" ]
|
||||
then
|
||||
git tag -f "${PREVIEW_TAG}"
|
||||
git push -f origin "${PREVIEW_TAG}
|
||||
else
|
||||
git tag "${PREVIEW_TAG}"
|
||||
git push origin "${PREVIEW_TAG}
|
||||
fi
|
||||
|
||||
printf "pushed tag %s to origin, triggering build.\n" "${PREVIEW_TAG}"
|
||||
|
Loading…
Reference in New Issue
Block a user