Skip to content

Commit

Permalink
NOJIRA Fully rely on Cirrus env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-vigneau-sonarsource authored and sonartech committed Feb 6, 2024
1 parent 5e6ead9 commit aa1fee2
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions build.gradle
Expand Up @@ -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
Expand All @@ -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]'
Expand Down

0 comments on commit aa1fee2

Please sign in to comment.