diff --git a/scripts/components/alerting/build.sh b/scripts/components/alerting/build.sh deleted file mode 100755 index d12218a024..0000000000 --- a/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 - diff --git a/scripts/components/common-utils/build.sh b/scripts/components/common-utils/build.sh deleted file mode 100755 index 3f803013c4..0000000000 --- a/scripts/components/common-utils/build.sh +++ /dev/null @@ -1,64 +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 - -./gradlew build -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -./gradlew publishToMavenLocal -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -mkdir -p $OUTPUT/maven/org/opensearch -cp -r ~/.m2/repository/org/opensearch/common-utils $OUTPUT/maven/org/opensearch/common-utils diff --git a/scripts/components/job-scheduler/build.sh b/scripts/components/job-scheduler/build.sh deleted file mode 100755 index 3a2e1c0fd4..0000000000 --- a/scripts/components/job-scheduler/build.sh +++ /dev/null @@ -1,69 +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 -./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT - -./gradlew publishToMavenLocal -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -mkdir -p $OUTPUT/maven/org/opensearch -cp -r ~/.m2/repository/org/opensearch/opensearch-job-scheduler $OUTPUT/maven/org/opensearch -cp -r ~/.m2/repository/org/opensearch/opensearch-job-scheduler-spi $OUTPUT/maven/org/opensearch - -./gradlew assemble --no-daemon --refresh-dependencies -DskipTests=true -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -[ -z "$OUTPUT" ] && OUTPUT=artifacts -mkdir -p $OUTPUT/plugins -cp ./build/distributions/*.zip $OUTPUT/plugins diff --git a/scripts/components/performance-analyzer-rca/build.sh b/scripts/components/performance-analyzer-rca/build.sh index df44a7abf4..9b7543c199 100755 --- a/scripts/components/performance-analyzer-rca/build.sh +++ b/scripts/components/performance-analyzer-rca/build.sh @@ -59,7 +59,3 @@ fi [ -z "$OUTPUT" ] && OUTPUT=artifacts ./gradlew build -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -x test - -mkdir -p $OUTPUT/maven/org/opensearch -./gradlew publishToMavenLocal -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -cp -r ~/.m2/repository/org/opensearch/performanceanalyzer-rca $OUTPUT/maven/org/opensearch \ No newline at end of file diff --git a/scripts/components/performance-analyzer/build.sh b/scripts/components/performance-analyzer/build.sh index 27eb16b0bf..e186503875 100755 --- a/scripts/components/performance-analyzer/build.sh +++ b/scripts/components/performance-analyzer/build.sh @@ -61,7 +61,3 @@ fi ./gradlew build -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -x test mkdir -p $OUTPUT/plugins cp ./build/distributions/*.zip $OUTPUT/plugins - -mkdir -p $OUTPUT/maven/org/opensearch -./gradlew publishToMavenLocal -Dopensearch.version=$VERSION -Dbuild.snapshot=$SNAPSHOT -cp -r ~/.m2/repository/org/opensearch/opensearch-performance-analyzer $OUTPUT/maven/org/opensearch