aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2016-11-28 12:09:14 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-11-28 12:09:14 +0100
commit6e0ca554a198d0ad7393f4b4fecfbf2cfcf44d34 (patch)
tree06e0bdc0212b1a6cf249aed82870019499c3bb20 /travis.sh
parentf60d01c24900ec92daf546ebdcc582305475c909 (diff)
downloadsonarqube-6e0ca554a198d0ad7393f4b4fecfbf2cfcf44d34.tar.gz
sonarqube-6e0ca554a198d0ad7393f4b4fecfbf2cfcf44d34.zip
SONAR-8420 Automated release
* add artifactsToPublish to bintray * export PROJECT_VERSION in env to be recorded in buildinfo * Remove distributionManagement (deploy is done by the artifactory-maven-plugin) * Enable release profile on Travis for maintenance branches * Remove checksums calculation of the distribution (done by the release process) * Remove javadoc profile (we only publish the javadoc of the plugin API)
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/travis.sh b/travis.sh
index 8bac388b870..e5472131437 100755
--- a/travis.sh
+++ b/travis.sh
@@ -59,9 +59,11 @@ CI)
elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo 'release branch: trigger QA, no analysis'
+ export PROJECT_VERSION=`maven_expression "project.version"`
+
mvn deploy \
$MAVEN_OPTIONS \
- -Pdeploy-sonarsource
+ -Pdeploy-sonarsource,release
elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
echo 'Internal pull request: trigger QA and analysis'