From 48d3b62cab4b03ae01fe169df7b52ab42fb41914 Mon Sep 17 00:00:00 2001 From: dblock Date: Wed, 6 Oct 2021 17:28:34 +0000 Subject: [PATCH] Removed scripts that were added into their respective repos. See: https://github.com/opensearch-project/common-utils/pull/79 https://github.com/opensearch-project/common-utils/pull/80 https://github.com/opensearch-project/job-scheduler/pull/71 https://github.com/opensearch-project/job-scheduler/pull/72 Signed-off-by: dblock --- scripts/components/common-utils/build.sh | 64 --------------------- scripts/components/job-scheduler/build.sh | 69 ----------------------- 2 files changed, 133 deletions(-) delete mode 100755 scripts/components/common-utils/build.sh delete mode 100755 scripts/components/job-scheduler/build.sh 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