From e1a966b42fa531d6d7f0cf0647517df2d51e6c0e Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 17 Jul 2024 21:56:33 -0700 Subject: [PATCH] Fixing build script to only publish alerting zip (#1605) (#1609) (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