diff --git a/buildSrc/src/integTest/groovy/org/opensearch/gradle/fixtures/DistributionDownloadFixture.groovy b/buildSrc/src/integTest/groovy/org/opensearch/gradle/fixtures/DistributionDownloadFixture.groovy index 0fb8c94b7b4..6d33f8e82c5 100644 --- a/buildSrc/src/integTest/groovy/org/opensearch/gradle/fixtures/DistributionDownloadFixture.groovy +++ b/buildSrc/src/integTest/groovy/org/opensearch/gradle/fixtures/DistributionDownloadFixture.groovy @@ -65,7 +65,7 @@ class DistributionDownloadFixture { private static String urlPath(String version, OpenSearchDistribution.Platform platform) { String fileType = ((platform == OpenSearchDistribution.Platform.LINUX || platform == OpenSearchDistribution.Platform.DARWIN)) ? "tar.gz" : "zip" - "/downloads/opensearch/opensearch-${version}-${platform}-x86_64.$fileType" + "/releases/core/opensearch/${version}/opensearch-${version}-${platform}-x86_64.$fileType" } private static byte[] filebytes(String urlPath) throws IOException { diff --git a/buildSrc/src/main/java/org/opensearch/gradle/DistributionDownloadPlugin.java b/buildSrc/src/main/java/org/opensearch/gradle/DistributionDownloadPlugin.java index 9bc6fc895c1..a5d232c9785 100644 --- a/buildSrc/src/main/java/org/opensearch/gradle/DistributionDownloadPlugin.java +++ b/buildSrc/src/main/java/org/opensearch/gradle/DistributionDownloadPlugin.java @@ -156,7 +156,7 @@ public class DistributionDownloadPlugin implements Plugin { repo.setName(name); repo.setUrl(url); repo.metadataSources(IvyArtifactRepository.MetadataSources::artifact); - repo.patternLayout(layout -> layout.artifact("/downloads/opensearch/[module]-[revision](-[classifier]).[ext]")); + repo.patternLayout(layout -> layout.artifact("/releases/core/opensearch/[revision]/[module]-[revision](-[classifier]).[ext]")); }); project.getRepositories().exclusiveContent(exclusiveContentRepository -> { exclusiveContentRepository.filter(config -> config.includeGroup(group)); @@ -168,7 +168,7 @@ public class DistributionDownloadPlugin implements Plugin { if (project.getRepositories().findByName(DOWNLOAD_REPO_NAME) != null) { return; } - addIvyRepo(project, DOWNLOAD_REPO_NAME, "https://artifacts-no-kpi.opensearch.org", FAKE_IVY_GROUP); + addIvyRepo(project, DOWNLOAD_REPO_NAME, "https://artifacts.opensearch.org", FAKE_IVY_GROUP); addIvyRepo(project, SNAPSHOT_REPO_NAME, "https://snapshots-no-kpi.opensearch.org", FAKE_SNAPSHOT_IVY_GROUP); }