Skip to content

Commit

Permalink
Remove dependency on opensearch build repo libs from custom build.sh (#…
Browse files Browse the repository at this point in the history
…2033)

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored Jul 15, 2024
1 parent e35f7f7 commit b0d36ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
set -ex

# vars / libs
SCRIPT_DIR=`dirname $(realpath $0)`
. $SCRIPT_DIR/../../../lib/shell/file_management.sh
PLUGIN_NAME=$(basename "$PWD")
PLUGIN_PATH=`realpath ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME`

Expand All @@ -30,7 +28,7 @@ function usage() {


function cleanup_all() {
File_Delete $PLUGIN_PATH
rm -rf -- $PLUGIN_PATH
}

trap cleanup_all TERM INT EXIT
Expand Down Expand Up @@ -104,4 +102,4 @@ echo "BUILD RELEASE ZIP FOR $PLUGIN_NAME"
cd plugins/$PLUGIN_NAME; yarn $HELPER_STRING build --opensearch-dashboards-version=$VERSION$QUALIFIER_IDENTIFIER
cd $CURR_DIR
echo "COPY $PLUGIN_NAME.zip"
cp -r ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME/build/$PLUGIN_NAME-$VERSION$QUALIFIER_IDENTIFIER.zip $OUTPUT/plugins/
cp -r ../OpenSearch-Dashboards/plugins/$PLUGIN_NAME/build/$PLUGIN_NAME-$VERSION$QUALIFIER_IDENTIFIER.zip $OUTPUT/plugins/

0 comments on commit b0d36ff

Please sign in to comment.