From e5fa31306a63c0054f15857b6218cbd58c3092dd Mon Sep 17 00:00:00 2001 From: Vamsi Manohar Date: Thu, 7 Sep 2023 17:54:16 -0700 Subject: [PATCH] Always use snapshot version for security plugin download (#2060) Signed-off-by: Vamsi Manohar --- build.gradle | 3 +++ integ-test/build.gradle | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 618ef4b5a5..23fe6e4ad0 100644 --- a/build.gradle +++ b/build.gradle @@ -16,6 +16,9 @@ buildscript { if (buildVersionQualifier) { opensearch_build += "-${buildVersionQualifier}" } + //this variable for always downloading snapshot version of security plugin. + //need to figure out more elegant solution for integ tests with security. + opensearch_build_snapshot = opensearch_build + '-SNAPSHOT' if (isSnapshot) { // 2.0.0-rc1-SNAPSHOT -> 2.0.0.0-rc1-SNAPSHOT (opensearch_build) opensearch_build += "-SNAPSHOT" diff --git a/integ-test/build.gradle b/integ-test/build.gradle index a06a580c6a..7ea43fc10d 100644 --- a/integ-test/build.gradle +++ b/integ-test/build.gradle @@ -64,7 +64,7 @@ ext { getSecurityPluginDownloadLink = { -> var repo = "https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/" + - "opensearch-security/$opensearch_build/" + "opensearch-security/$opensearch_build_snapshot/" var metadataFile = Paths.get(projectDir.toString(), "build", "maven-metadata.xml").toAbsolutePath().toFile() download.run { src repo + "maven-metadata.xml"