From cc9f6b2fd282806608e8c17f17cb9c0684393330 Mon Sep 17 00:00:00 2001 From: Mitchell Gale Date: Tue, 30 May 2023 11:23:12 -0700 Subject: [PATCH] Added deleteSQLCLI to be called before the sql-cli is cloned in case directory already exists. Signed-off-by: Mitchell Gale --- doctest/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doctest/build.gradle b/doctest/build.gradle index 4fa0e6e00f..db486f2037 100644 --- a/doctest/build.gradle +++ b/doctest/build.gradle @@ -99,6 +99,11 @@ task stopPrometheus() { } } } + +task deleteSQLCLI (type: Delete) { + delete 'sql-cli' +} + if(getOSFamilyType() != "windows") { stopPrometheus.mustRunAfter startPrometheus startOpenSearch.dependsOn startPrometheus @@ -108,6 +113,7 @@ doctest.dependsOn startOpenSearch doctest.finalizedBy stopOpenSearch check.dependsOn doctest clean.dependsOn(cleanBootstrap) +cloneSqlCli.dependsOn(deleteSQLCLI) // 2.0.0-alpha1-SNAPSHOT -> 2.0.0.0-alpha1-SNAPSHOT String opensearch_no_snapshot = opensearch_version.replace('-SNAPSHOT', '')