From e4e869d8424bdf2542dc867d2d9379258ffef019 Mon Sep 17 00:00:00 2001 From: dblock Date: Wed, 6 Oct 2021 18:25:00 +0000 Subject: [PATCH] Removed alerting that was moved to its repo. https://github.com/opensearch-project/alerting/pull/196 https://github.com/opensearch-project/alerting/pull/197 Signed-off-by: dblock --- .../scripts/components/alerting/build.sh | 75 ------------------- 1 file changed, 75 deletions(-) delete mode 100755 bundle-workflow/scripts/components/alerting/build.sh diff --git a/bundle-workflow/scripts/components/alerting/build.sh b/bundle-workflow/scripts/components/alerting/build.sh deleted file mode 100755 index d12218a024..0000000000 --- a/bundle-workflow/scripts/components/alerting/build.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash - -# SPDX-License-Identifier: Apache-2.0 -# -# The OpenSearch Contributors require contributions made to -# this file be licensed under the Apache-2.0 license or a -# compatible open source license. - -set -ex - -function usage() { - echo "Usage: $0 [args]" - echo "" - echo "Arguments:" - echo -e "-v VERSION\t[Required] OpenSearch version." - echo -e "-s SNAPSHOT\t[Optional] Build a snapshot, default is 'false'." - echo -e "-a ARCHITECTURE\t[Optional] Build architecture, ignored." - echo -e "-o OUTPUT\t[Optional] Output path, default is 'artifacts'." - echo -e "-h help" -} - -while getopts ":h:v:s:o:a:" arg; do - case $arg in - h) - usage - exit 1 - ;; - v) - VERSION=$OPTARG - ;; - s) - SNAPSHOT=$OPTARG - ;; - o) - OUTPUT=$OPTARG - ;; - a) - ARCHITECTURE=$OPTARG - ;; - :) - echo "Error: -${OPTARG} requires an argument" - usage - exit 1 - ;; - ?) - echo "Invalid option: -${arg}" - exit 1 - ;; - esac -done - -if [ -z "$VERSION" ]; then - echo "Error: You must specify the OpenSearch version" - usage - exit 1 -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.snapshot=$SNAPSHOT -x ktlint - -zipPath=$(find . -path \*build/distributions/*.zip) -distributions="$(dirname "${zipPath}")" - -echo "COPY ${distributions}/*.zip" -cp ${distributions}/*.zip ./$OUTPUT/plugins - -./gradlew publishToMavenLocal -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -x ktlint - -mkdir -p $OUTPUT/maven/org/opensearch -cp -r ~/.m2/repository/org/opensearch/notification $OUTPUT/maven/org/opensearch/notification -