aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2018-03-28 12:37:09 +0200
committerJanos Gyerik <janos.gyerik@sonarsource.com>2018-04-04 14:25:32 +0200
commita70aa466e5d5b198958ea015f3b22467227d5b2c (patch)
tree3656d33c9e30e2a17ed7a4dce45bedf89e3ad327 /travis.sh
parentc9e60ded9b8ffe4f97c73447c3ceda6919662a1e (diff)
downloadsonarqube-a70aa466e5d5b198958ea015f3b22467227d5b2c.tar.gz
sonarqube-a70aa466e5d5b198958ea015f3b22467227d5b2c.zip
BUILD-630 Generate javadoc ad sources jars with Gradle only on release branches
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/travis.sh b/travis.sh
index 0e3207b53ca..300ee86f70d 100755
--- a/travis.sh
+++ b/travis.sh
@@ -96,7 +96,7 @@ BUILD)
echo 'Build and analyze master'
./gradlew --no-daemon --console plain \
-DbuildNumber=$BUILD_NUMBER \
- build sonarqube artifactoryPublish -PjacocoEnabled=true -Prelease=true \
+ build sonarqube artifactoryPublish -PjacocoEnabled=true -Pofficial=true -Prelease=true \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.projectVersion=$INITIAL_VERSION \
@@ -109,7 +109,7 @@ BUILD)
echo 'Build release branch'
./gradlew --no-daemon --console plain \
-DbuildNumber=$BUILD_NUMBER \
- build sonarqube artifactoryPublish -PjacocoEnabled=true -Prelease=true \
+ build sonarqube artifactoryPublish -PjacocoEnabled=true -Pofficial=true -Prelease=true \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.branch.name=$TRAVIS_BRANCH \
@@ -123,7 +123,7 @@ BUILD)
echo 'Build and analyze internal pull request'
./gradlew --no-daemon --console plain \
-DbuildNumber=$BUILD_NUMBER \
- build sonarqube artifactoryPublish -PjacocoEnabled=true -Prelease=true \
+ build sonarqube artifactoryPublish -PjacocoEnabled=true -Pofficial=true \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \
-Dsonar.analysis.buildNumber=$BUILD_NUMBER \
@@ -140,7 +140,7 @@ BUILD)
else
echo 'Build feature branch or external pull request'
./gradlew --no-daemon --console plain \
- -DbuildNumber=$BUILD_NUMBER -Prelease=true \
+ -DbuildNumber=$BUILD_NUMBER -Pofficial=true \
build artifactoryPublish
fi
;;