This is an automated email from the ASF dual-hosted git repository.
janardhan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push:
new 7561210dc3 [MINOR] Keep scripts concise and remove redundant/commented
code
7561210dc3 is described below
commit 7561210dc3aa4db155b3f556fb13416210a34603
Author: Janardhan Pulivarthi <[email protected]>
AuthorDate: Fri Apr 15 13:02:56 2022 +0530
[MINOR] Keep scripts concise and remove redundant/commented code
Closes #1549.
---
dev/release/create-tag.sh | 20 +-------------------
dev/release/release-build.sh | 35 -----------------------------------
2 files changed, 1 insertion(+), 54 deletions(-)
diff --git a/dev/release/create-tag.sh b/dev/release/create-tag.sh
index 21c4d3de98..22ef173623 100755
--- a/dev/release/create-tag.sh
+++ b/dev/release/create-tag.sh
@@ -88,19 +88,7 @@ printf "$NEXT_VERSION"
# options available at
https://maven.apache.org/plugins/maven-gpg-plugin/sign-mojo.html
GPG_OPTS="-Dgpg.homedir=$GNUPGHOME -Dgpg.keyname=$GPG_KEY
-Dgpg.passphrase=$GPG_PASSPHRASE"
-printf "\n -Dgpg.homedir=$GNUPGHOME -Dgpg.keyname=$GPG_KEY
-Dgpg.passphrase=$GPG_PASSPHRASE \n"
-
-# Tag release version before `mvn release:prepare`
-# tag python build
-# PySpark version info we use dev0 instead of SNAPSHOT to be closer
-# to PEP440.
-# sed -i".tmp" 's/__version__ = .*$/__version__ = "'"$NEXT_VERSION.dev0"'"/'
python/systemds/version.py
-
-# change tags in docs
-# docs/_config.yml
-# update SYSTEMDS_VERSION
-# sed -i 's/SYSTEMDS_VERSION:.*$/SYSTEMDS_VERSION: '"$RELEASE_VERSION"'/g'
docs/_config.yml
-# and run docs/updateAPI.sh to update version in api docs
+printf "\n -Dgpg.homedir=$GNUPGHOME -Dgpg.keyname=$GPG_KEY \n"
# NOTE:
@@ -130,9 +118,3 @@ printf "\n #### Executing command: #### \n"
printf "\n $(bold $(greencolor $CMD)) \n\n"
$CMD
-
-# tag snapshot version after `mvn release:prepare`
-
-# Change docs to dev snapshot tag
-# sed -i".tmp1" 's/SYSTEMDS_VERSION:.*$/SYSTEMDS_VERSION: '"$NEXT_VERSION"'/g'
docs/_config.yml
-# and run docs/updateAPI.sh to update version in api docs
diff --git a/dev/release/release-build.sh b/dev/release/release-build.sh
index ba7b8972b1..eb46deb069 100755
--- a/dev/release/release-build.sh
+++ b/dev/release/release-build.sh
@@ -97,41 +97,6 @@ cat <<EOF >../tmp-settings.xml
</settings>
EOF
-if [[ "$1" == "publish-snapshot" ]]; then
-
- CMD="mvn --settings ../tmp-settings.xml deploy -DskipTests
-Dmaven.deploy.skip=${dry_run} \
- -Daether.checksums.algorithms=SHA-512 \
- ${GPG_OPTS}"
- #
-DaltSnapshotDeploymentRepository=github::default::https://maven.pkg.github.com/j143/systemds
\
- printf "\n #### Executing command: #### \n"
- printf "\n $(bold $(greencolor $CMD)) \n\n"
-
- $CMD
-
-fi
-
-
-
-if [[ "$1" == "publish-staging" ]]; then
-
- mvn versions:set -DnewVersion=${PACKAGE_VERSION}
-
- CMD="mvn --settings ../tmp-settings.xml clean -Pdistribution deploy \
- -DskiptTests -Dmaven.deploy.skip=${dry_run} \
- -Daether.checksums.algorithms=SHA-512 \
- ${GPG_OPTS}"
-
- printf "\n #### Executing command: #### \n"
- printf "\n $(bold $(greencolor $CMD)) \n\n"
-
- $CMD
-fi
-
-# if [[ -z "$GPG_KEY" ]]; then
-# echo "The environment variable $GPG_KEY is not set."
-# fi
-
-# GPG="gpg -u $GPG_KEY --no-tty --batch --pinentry-mode loopback"
# Publishing to Sonatype repo, details:
NEXUS_ROOT=https://repository.apache.org/service/local/staging