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"