Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion dd-smoke-tests/springboot-tomcat/application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@ ext {
serverExtension = 'zip'
}

def massArtifactUrl = { String upstreamArtifactUrl ->
def massReadUrl = providers.environmentVariable('MASS_READ_URL').orNull
if (massReadUrl == null) {
return "https://${upstreamArtifactUrl}"
}
def baseUrl = massReadUrl.endsWith('/') ? massReadUrl : "${massReadUrl}/"
return "${baseUrl}internal/artifact/${upstreamArtifactUrl}"
}

Comment thread
AlexeyKuznetsov-DD marked this conversation as resolved.
repositories {
ivy {
url = 'https://dlcdn.apache.org'
url = massArtifactUrl('dlcdn.apache.org')
patternLayout {
artifact '/[organisation]/[module]/v[revision]/bin/apache-[organisation]-[revision].[ext]'
}
Expand Down