From 0487b3dd19c549a1d48240671faa5c4525ee5af2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 8 Sep 2023 00:54:35 +0000 Subject: [PATCH] Always use snapshot version for security plugin download (#2060) Signed-off-by: Vamsi Manohar (cherry picked from commit e5fa31306a63c0054f15857b6218cbd58c3092dd) Signed-off-by: github-actions[bot] --- build.gradle | 3 +++ integ-test/build.gradle | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 49ff84b849..8c39d642de 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 f489017cca..57e5ceac1e 100644 --- a/integ-test/build.gradle +++ b/integ-test/build.gradle @@ -61,7 +61,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"