Skip to content

Commit

Permalink
Include branch name when publishing pinot release to bintray (#6019)
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Li(Analytics Engineering) <jlli@jlli-mn1.linkedin.biz>
  • Loading branch information
jackjlli and Jack Li(Analytics Engineering) committed Sep 15, 2020
1 parent 41de9a6 commit c42c740
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis/.travis_nightly_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@

if [ -n "${DEPLOY_BUILD_OPTS}" ]; then
echo "Deploying to bintray"
echo "Current branch name: ${TRAVIS_BRANCH}"

BUILD_VERSION=$(grep -E "<version>(.*)-SNAPSHOT</version>" pom.xml | cut -d'>' -f2 | cut -d'<' -f1 | cut -d'-' -f1)
echo "Current build version: $BUILD_VERSION${DEV_VERSION}"
mvn versions:set -DnewVersion="$BUILD_VERSION${DEV_VERSION}" -q -B
mvn versions:commit -q -B

# Deploy to bintray
mvn deploy -s .travis/.ci.settings.xml -DskipTests -q -DretryFailedDeploymentCount=5 -DaltDeploymentRepository=bintray-linkedin-maven::default::'https://api.bintray.com/maven/linkedin/maven/pinot/;publish=1;override=1'
mvn deploy -s .travis/.ci.settings.xml -DscmBranch="${TRAVIS_BRANCH}" -DskipTests -q -DretryFailedDeploymentCount=5 -DaltDeploymentRepository=bintray-linkedin-maven::default::'https://api.bintray.com/maven/linkedin/maven/pinot/;publish=1;override=1'
fi

0 comments on commit c42c740

Please sign in to comment.