Skip to content

Commit 8b37474

Browse files
goyameghjowg-amazon
authored andcommitted
Fixing build script to only publish alerting zip (opensearch-project#1605)
Signed-off-by: Megha Goyal <[email protected]>
1 parent b9e5889 commit 8b37474

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

scripts/build.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,12 @@ fi
6464
[[ "$SNAPSHOT" == "true" ]] && VERSION=$VERSION-SNAPSHOT
6565
[ -z "$OUTPUT" ] && OUTPUT=artifacts
6666

67-
mkdir -p $OUTPUT/plugins
6867

6968
./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.version_qualifier=$QUALIFIER -Dbuild.snapshot=$SNAPSHOT
7069

71-
zipPath=$(find . -path \*build/distributions/*.zip)
72-
distributions="$(dirname "${zipPath}")"
73-
74-
echo "COPY ${distributions}/*.zip"
75-
cp ${distributions}/*.zip ./$OUTPUT/plugins
70+
[ -z "$OUTPUT" ] && OUTPUT=artifacts
71+
mkdir -p $OUTPUT/plugins
72+
cp ./alerting/build/distributions/*.zip $OUTPUT/plugins
7673

7774
./gradlew publishToMavenLocal -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER
7875
./gradlew publishPluginZipPublicationToZipStagingRepository -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -Dbuild.version_qualifier=$QUALIFIER

0 commit comments

Comments
 (0)