nosqlbench/scripts/tag-preview-build

16 lines
334 B
Plaintext
Raw Normal View History

2023-01-23 21:18:53 -06:00
#!/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}"
2023-01-25 19:52:05 -06:00
if [ "$1" == "-f" ]
then
git tag -f "${PREVIEW_TAG}"
else
git tag "${PREVIEW_TAG}"
fi
2023-01-23 21:18:53 -06:00