Skip to content

Commit

Permalink
Refactor the structure of release scripts to facilitate CI management
Browse files Browse the repository at this point in the history
  • Loading branch information
Ting Yuan committed Sep 2, 2021
1 parent 39378de commit bd2d61f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

set -ex

echo "Releasing connector AMQP1_0"

version=${1#v}
if [[ "x$version" == "x" ]]; then
echo "You need give a version number of the connector AMQP1_0"
exit 1
fi

# Create a direcotry to save assets
ASSETS_DIR=release
mkdir $ASSETS_DIR

mvn clean install -DskipTests -Dmaven.wagon.http.retryHandler.count=3
mv io-amqp1_0-impl/target/pulsar-io-amqp1_0-*.nar ./$ASSETS_DIR
cp README.md ./$ASSETS_DIR/pulsar-io-amqp1_0-readme.md

0 comments on commit bd2d61f

Please sign in to comment.