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"