From 99da49bb3ba36077917d82ba9affd1e6f24f5d8d Mon Sep 17 00:00:00 2001 From: David Rautureau Date: Mon, 19 Mar 2018 10:42:25 +0100 Subject: [PATCH] Enable deployment of artifacts on release branches --- build.gradle | 1 + settings.gradle | 2 +- travis.sh | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 1e4502d2448..88bdc56d3ca 100644 --- a/build.gradle +++ b/build.gradle @@ -300,6 +300,7 @@ artifactory { publishIvy = false } } + clientConfig.info.setBuildName('sonar-enterprise') clientConfig.info.setBuildNumber(System.getenv('BUILD_NUMBER')) // Define the artifacts to be deployed to https://sonarsource.bintray.com on releases clientConfig.info.addEnvironmentProperty('ARTIFACTS_TO_PUBLISH', "${project.group}:sonar-application:zip,com.sonarsource.governance:sonar-governance-plugin:jar,com.sonarsource.developer:sonar-developer-plugin:jar,com.sonarsource.ha:sonar-ha-plugin:jar,com.sonarsource.branch:sonar-branch-plugin:jar") diff --git a/settings.gradle b/settings.gradle index 49f30309a16..4aafd11b675 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,4 +1,4 @@ -rootProject.name = 'sonar-enterprise' +rootProject.name = 'sonarqube' include 'plugins:sonar-xoo-plugin' diff --git a/travis.sh b/travis.sh index 6674f5f7b28..baa705d9eea 100755 --- a/travis.sh +++ b/travis.sh @@ -78,10 +78,10 @@ BUILD) if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo 'Build and analyze master' - # FIXME analysis and deployment disabled for now + # FIXME analysis disabled for now ./gradlew --no-daemon --console plain \ -DbuildNumber=$BUILD_NUMBER \ - build -PjacocoEnabled=true -Prelease=true \ + build artifactoryPublish -PjacocoEnabled=true -Prelease=true \ -Dsonar.host.url=$SONAR_HOST_URL \ -Dsonar.login=$SONAR_TOKEN \ -Dsonar.projectVersion=$INITIAL_VERSION \ @@ -92,10 +92,10 @@ BUILD) elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo 'Build release branch' - # FIXME analysis and deployment disabled for now + # FIXME analysis disabled for now ./gradlew --no-daemon --console plain \ -DbuildNumber=$BUILD_NUMBER \ - build -PjacocoEnabled=true -Prelease=true \ + build artifactoryPublish -PjacocoEnabled=true -Prelease=true \ -Dsonar.host.url=$SONAR_HOST_URL \ -Dsonar.login=$SONAR_TOKEN \ -Dsonar.branch.name=$TRAVIS_BRANCH \ -- 2.39.5