diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2020-04-02 12:12:28 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-04-06 20:03:39 +0000 |
commit | d88d0e1a3eba749944c3d52fb193a354ee1dbef2 (patch) | |
tree | ef3daa226fc4ada19b9a8d04202b3e3b168200b7 /server/sonar-docs/build.gradle | |
parent | ce47b04beb2dc4431dcce8b425d2339edc2ba5cc (diff) | |
download | sonarqube-d88d0e1a3eba749944c3d52fb193a354ee1dbef2.tar.gz sonarqube-d88d0e1a3eba749944c3d52fb193a354ee1dbef2.zip |
Fix the upgrade of the Gradle Artifactory plugin to 4.15.1
The configuration of private subprojects must be fixed
in order to correct set the properties like "build.name"
on private artifacts.
Diffstat (limited to 'server/sonar-docs/build.gradle')
-rw-r--r-- | server/sonar-docs/build.gradle | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle index cea99b44015..776922445f5 100644 --- a/server/sonar-docs/build.gradle +++ b/server/sonar-docs/build.gradle @@ -112,11 +112,23 @@ publishing { artifactory { publish { - contextUrl = System.getenv('ARTIFACTORY_URL') repository { repoKey = System.getenv('ARTIFACTORY_DEPLOY_REPO_PRIVATE') - username = System.getenv('ARTIFACTORY_DEPLOY_USERNAME_PRIVATE') - password = System.getenv('ARTIFACTORY_DEPLOY_PASSWORD_PRIVATE') + username = System.getenv('ARTIFACTORY_DEPLOY_USERNAME_PRIVATE') ?: project.properties.artifactoryUsername + password = System.getenv('ARTIFACTORY_DEPLOY_PASSWORD_PRIVATE') ?: project.properties.artifactoryPaswword + } + defaults { + properties = [ + 'build.name' : 'sonar-enterprise', + 'build.number' : System.getenv('BUILD_NUMBER'), + 'pr.branch.target': System.getenv('GITHUB_BASE_BRANCH'), + 'pr.number' : System.getenv('PULL_REQUEST'), + 'vcs.branch' : System.getenv('GITHUB_BRANCH'), + 'vcs.revision' : System.getenv('GIT_SHA1'), + 'version' : version + ] + publishPom = true + publishIvy = false } } } |