From bd063bd0778400161ed1e75e3314ec7bb67e31af Mon Sep 17 00:00:00 2001 From: Rishikesh Pasham <62345295+Rishikesh1159@users.noreply.github.com> Date: Fri, 2 Sep 2022 20:12:25 +0000 Subject: [PATCH] Adding external property customDistributionUrl to let developer override default distribution Download url (#380) * Adding uasage and external property customDistributionUrl to let developer override default distribution Download url Signed-off-by: Rishikesh1159 * Adding doc and removing system property from build.gradle Signed-off-by: Rishikesh1159 Signed-off-by: Rishikesh1159 --- DEVELOPER_GUIDE.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md index a9db88d91..ef9460fb4 100644 --- a/DEVELOPER_GUIDE.md +++ b/DEVELOPER_GUIDE.md @@ -8,6 +8,9 @@ - [Building from the IDE](#building-from-the-ide) - [Debugging](#debugging) - [Advanced: Launching multi node clusters locally](#advanced-launching-multi-node-clusters-locally) + - [Backports](#backports) + - [Gradle Plugins](#gradle-plugins) + - [Distribution Download Plugin](#distribution-download-plugin) ## Developer Guide @@ -87,4 +90,13 @@ The Github workflow in [`backport.yml`](.github/workflows/backport.yml) creates original PR with an appropriate label `backport ` is merged to main with the backport workflow run successfully on the PR. For example, if a PR on main needs to be backported to `1.x` branch, add a label `backport 1.x` to the PR and make sure the backport workflow runs on the PR along with other checks. Once this PR is -merged to main, the workflow will create a backport PR to the `1.x` branch. \ No newline at end of file +merged to main, the workflow will create a backport PR to the `1.x` branch. + +### Gradle Plugins + +#### Distribution Download Plugin + +The Distribution Download plugin downloads the latest version of OpenSearch by default, and supports overriding this behavior by setting `customDistributionUrl`. This will help to pull artifacts from custom location for testing during release process. +``` +./gradlew integTest -PcustomDistributionUrl="https://ci.opensearch.org/ci/dbc/bundle-build/1.2.0/1127/linux/x64/dist/opensearch-1.2.0-linux-x64.tar.gz" +```