You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by nd...@apache.org on 2020/04/10 19:02:33 UTC
[hbase] branch master updated: HBASE-24160 create-release fails to
process x.y.0 version info correctly
This is an automated email from the ASF dual-hosted git repository.
ndimiduk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new b3488fc HBASE-24160 create-release fails to process x.y.0 version info correctly
b3488fc is described below
commit b3488fcdec58b6347490d6b2947c4b965067bd95
Author: Nick Dimiduk <nd...@apache.org>
AuthorDate: Thu Apr 9 15:04:51 2020 -0700
HBASE-24160 create-release fails to process x.y.0 version info correctly
Current code gives me the following; notice default values generated
for `RELEASE_VERSION` and `api_diff_tag`.
```
GIT_BRANCH [branch-2.3]:
Current branch VERSION is 2.3.0-SNAPSHOT.
RELEASE_VERSION [2.3.-1]: 2.3.0
NEXT_VERSION [2.3.0-SNAPSHOT]: 2.3.1-SNAPSHOT
RC_COUNT [0]:
GIT_REF [2.3.0RC0]:
api_diff_tag, [rel/2.2.0)]:
```
With this patch I get
```
GIT_BRANCH [branch-2.3]:
Current branch VERSION is 2.3.0-SNAPSHOT.
RELEASE_VERSION [2.3.0]:
NEXT_VERSION [2.3.1-SNAPSHOT]:
RC_COUNT [0]:
GIT_REF [2.3.0RC0]:
api_diff_tag, [rel/2.2.0]:
```
Signed-off-by: Michael Stack <st...@apache.org>
Signed-off-by: Jan Hentschel <ja...@ultratendency.com>
---
dev-support/create-release/release-util.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dev-support/create-release/release-util.sh b/dev-support/create-release/release-util.sh
index 471e7b2..99a8e90 100755
--- a/dev-support/create-release/release-util.sh
+++ b/dev-support/create-release/release-util.sh
@@ -19,7 +19,7 @@
DRY_RUN=${DRY_RUN:-0}
GPG="gpg --pinentry-mode loopback --no-tty --batch"
YETUS_VERSION=${YETUS_VERSION:-0.11.1}
-set -x
+set -e
function error {
echo "$*"
@@ -87,9 +87,9 @@ function get_api_diff_version {
local major=$(echo "$version" | cut -d . -f 1)
local minor=$(echo "$version" | cut -d . -f 2)
if [ $minor != 0 ]; then
- api_diff_tag="rel/${major}.$((minor - 1)).0)"
+ api_diff_tag="rel/${major}.$((minor - 1)).0"
else
- api_diff_tag="rel/$((major - 1)).0.0)"
+ api_diff_tag="rel/$((major - 1)).0.0"
fi
fi
api_diff_tag=$(read_config "api_diff_tag", "$api_diff_tag")
@@ -136,7 +136,7 @@ function get_release_info {
RELEASE_VERSION="${VERSION/-SNAPSHOT/}"
fi
- local REV=$(echo "$VERSION" | cut -d . -f 3)
+ local REV=$(echo "${RELEASE_VERSION}" | cut -d . -f 3)
# Find out what RC is being prepared.
# - If the current version is "x.y.0", then this is RC0 of the "x.y.0" release.