Skip to content
Open
Show file tree
Hide file tree
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/rum/wildfly-15/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,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}"
}

repositories {
ivy {
url = 'https://github.com/wildfly/wildfly/releases/download/'
url = massArtifactUrl('github.com/wildfly/wildfly/releases/download/')
// Restrict this repository to WildFly distribution artifacts only.
// Without this filter, Gradle may probe this host for unrelated dependencies
// (for example JUnit/Mockito), which makes the build flaky when the host is unreachable.
Expand Down
11 changes: 10 additions & 1 deletion dd-smoke-tests/wildfly/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,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}"
}

repositories {
ivy {
url = 'https://github.com/wildfly/wildfly/releases/download/'
url = massArtifactUrl('github.com/wildfly/wildfly/releases/download/')
// Restrict this repository to WildFly distribution artifacts only.
// Without this filter, Gradle may probe this host for unrelated dependencies
// (for example JUnit/Mockito), which makes the build flaky when the host is unreachable.
Expand Down
Loading