From e5c5d08d9c3fdf77e06279c5f89e6657b36100f2 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:20:11 -0700 Subject: [PATCH] Fixing build script to only publish alerting zip (#1605) (#1608) (cherry picked from commit a2cbff6ab0153681877476e27c663f96018f44a1) Signed-off-by: Megha Goyal Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- scripts/build.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 9f0afc3da..efd69ecc2 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -64,15 +64,12 @@ fi [[ "$SNAPSHOT" == "true" ]] && VERSION=$VERSION-SNAPSHOT [ -z "$OUTPUT" ] && OUTPUT=artifacts -mkdir -p $OUTPUT/plugins ./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.version_qualifier=$QUALIFIER -Dbuild.snapshot=$SNAPSHOT -zipPath=$(find . -path \*build/distributions/*.zip) -distributions="$(dirname "${zipPath}")" - -echo "COPY ${distributions}/*.zip" -cp ${distributions}/*.zip ./$OUTPUT/plugins +[ -z "$OUTPUT" ] && OUTPUT=artifacts +mkdir -p $OUTPUT/plugins +cp ./alerting/build/distributions/*.zip $OUTPUT/plugins ./gradlew publishToMavenLocal -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER ./gradlew publishPluginZipPublicationToZipStagingRepository -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER