aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>2023-10-12 15:48:07 +0200
committersonartech <sonartech@sonarsource.com>2024-02-06 16:38:16 +0000
commitaa1fee2ae2a813ecc4ffe302c1429219707b5a73 (patch)
tree7c317533a04b9fa35071dec6e528dd6fe386f47b
parent5e6ead969bb60559d9111a66399eaad5a11656bc (diff)
downloadsonarqube-aa1fee2ae2a813ecc4ffe302c1429219707b5a73.tar.gz
sonarqube-aa1fee2ae2a813ecc4ffe302c1429219707b5a73.zip
NOJIRA Fully rely on Cirrus env variables9.9.4.87374
-rw-r--r--build.gradle24
1 files changed, 9 insertions, 15 deletions
diff --git a/build.gradle b/build.gradle
index db4bea40eb9..848b4e95276 100644
--- a/build.gradle
+++ b/build.gradle
@@ -74,14 +74,11 @@ allprojects {
}
maven {
- if (artifactoryPassword) {
- authentication {
- header(HttpHeaderAuthentication)
- }
- credentials(HttpHeaderCredentials) {
- name = "Authorization"
- value = "Bearer $artifactoryPassword"
- }
+ if (artifactoryUsername && artifactoryPassword) {
+ credentials {
+ username artifactoryUsername
+ password artifactoryPassword
+ }
} else {
// Workaround for artifactory
// https://www.jfrog.com/jira/browse/RTFACT-13797
@@ -91,14 +88,11 @@ allprojects {
}
ivy {
if (artifactoryUsername && artifactoryPassword) {
- url "${artifactoryUrl}/sonarsource-bucket"
- authentication {
- header(HttpHeaderAuthentication)
- }
- credentials(HttpHeaderCredentials) {
- name = "Authorization"
- value = "Bearer $artifactoryPassword"
+ credentials {
+ username artifactoryUsername
+ password artifactoryPassword
}
+ url "${artifactoryUrl}/sonarsource-bucket"
patternLayout {
artifact '/[organisation]/[module]/[module]-[revision].[ext]'