Skip to content

Commit 52af1fe

Browse files
committed
Ninja fix bintray upload issues
The addition of the `-B` flag when invoking maven to extract the version number made it return a blank value.
1 parent 4441f2b commit 52af1fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ci/before_deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if [[ $CASSANDRA_VERSION =~ ^2\.1\..* && "x${GRIM_MIN}" = "x" ]]
2222
then
2323
if [ "${TRAVIS_BRANCH}" = "master" -a ! -d "cassandra-reaper-master" ]
2424
then
25-
VERSION=$(printf 'VER\t${project.version}' | mvn -B help:evaluate | grep '^VER' | cut -f2)
25+
VERSION=$(printf 'VER\t${project.version}' | mvn help:evaluate | grep '^VER' | cut -f2)
2626
DATE=$(date +"%Y%m%d")
2727
RELEASEDATE=$(date +"%Y-%m-%d")
2828
RPM_VERSION=$(echo "${VERSION}" | sed "s/-/_/")
@@ -60,7 +60,7 @@ then
6060
fi
6161
if [ "x${TRAVIS_TAG}" != "x" -a ! -d "cassandra-reaper-${TRAVIS_TAG}" ]
6262
then
63-
VERSION=$(printf 'VER\t${project.version}' | mvn -B help:evaluate | grep '^VER' | cut -f2)
63+
VERSION=$(printf 'VER\t${project.version}' | mvn help:evaluate | grep '^VER' | cut -f2)
6464
RELEASEDATE=$(date +"%Y-%m-%d")
6565
# Update Bintray descriptor files with appropriate version numbers and release dates
6666
sed -i "s/VERSION/${VERSION}/g" src/ci/descriptor-rpm.json

0 commit comments

Comments
 (0)