From c06f46f3648cfdb8ce922defd8369e081ce3b7fa Mon Sep 17 00:00:00 2001 From: Brice Dutheil Date: Tue, 2 Jun 2026 10:41:34 +0200 Subject: [PATCH] Route WildFly archives through MASS --- dd-smoke-tests/rum/wildfly-15/build.gradle | 11 ++++++++++- dd-smoke-tests/wildfly/build.gradle | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/dd-smoke-tests/rum/wildfly-15/build.gradle b/dd-smoke-tests/rum/wildfly-15/build.gradle index 888442fc295..698474c51b1 100644 --- a/dd-smoke-tests/rum/wildfly-15/build.gradle +++ b/dd-smoke-tests/rum/wildfly-15/build.gradle @@ -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. diff --git a/dd-smoke-tests/wildfly/build.gradle b/dd-smoke-tests/wildfly/build.gradle index 7870b8ba13e..4d00d86c18b 100644 --- a/dd-smoke-tests/wildfly/build.gradle +++ b/dd-smoke-tests/wildfly/build.gradle @@ -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.