Skip to content

Commit 85181bb

Browse files
committed
Add Hibernate Tools to the release scripts
Signed-off-by: marko-bekhta <marko.prykladna@gmail.com>
1 parent 1b15a53 commit 85181bb

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

prepare-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if [ "$PROJECT" == "orm" ] || [ "$PROJECT" == "reactive" ]; then
5555
-PhibernatePublishUsername=$OSSRH_USER -PhibernatePublishPassword=$OSSRH_PASSWORD \
5656
-DsigningPassword=$RELEASE_GPG_PASSPHRASE -DsigningKeyFile=$RELEASE_GPG_PRIVATE_KEY_PATH
5757
else
58-
if [[ "$PROJECT" != "hcann" && ! $PROJECT =~ ^infra-.+ ]]; then
58+
if [[ "$PROJECT" != "tools" && "$PROJECT" != "hcann" && ! $PROJECT =~ ^infra-.+ ]]; then
5959
# These projects do not have a distribution bundle archive,
6060
# hence we do not want to check the sourceforge availability as we will not be uploading anything.
6161
# There is also no version in the readme and no changelog file.

publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function usage() {
55
echo
66
echo " $0 [options] <project> <release_version> <development_version> <branch>"
77
echo
8-
echo " <project> One of [search,validator,ogm,orm,reactive]"
8+
echo " <project> One of [search,validator,ogm,orm,reactive,tools,hcann,infra-*]"
99
echo " <release_version> The version to release (e.g. 6.0.1.Final)"
1010
echo " <development_version> The new version after the release (e.g. 6.0.2-SNAPSHOT)"
1111
echo " <branch> The branch we want to release"
@@ -85,7 +85,7 @@ if [ "$PROJECT" == "orm" ] || [ "$PROJECT" == "reactive" ]; then
8585
-DsigningPassword=$RELEASE_GPG_PASSPHRASE -DsigningKeyFile=$RELEASE_GPG_PRIVATE_KEY_PATH --stacktrace
8686
else
8787
bash -xe "$SCRIPTS_DIR/deploy.sh" "$PROJECT"
88-
if [[ "$PROJECT" != "hcann" && ! $PROJECT =~ ^infra-.+ ]]; then
88+
if [[ "$PROJECT" != "tools" && "$PROJECT" != "hcann" && ! $PROJECT =~ ^infra-.+ ]]; then
8989
exec_or_dry_run bash -xe "$SCRIPTS_DIR/upload-distribution.sh" "$PROJECT" "$RELEASE_VERSION"
9090
exec_or_dry_run bash -xe "$SCRIPTS_DIR/upload-documentation.sh" "$PROJECT" "$RELEASE_VERSION" "$RELEASE_VERSION_FAMILY"
9191
fi

release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function usage() {
55
echo
66
echo " $0 [options] <project> <release_version> <development_version>"
77
echo
8-
echo " <project> One of [search,validator,ogm,orm,reactive]"
8+
echo " <project> One of [search,validator,ogm,orm,reactive,tools,hcann,infra-*]]"
99
echo " <release_version> The version to release (e.g. 6.0.1.Final)"
1010
echo " <development_version> The new version after the release (e.g. 6.0.2-SNAPSHOT)"
1111
echo
@@ -110,6 +110,8 @@ elif [ "$PROJECT" == "orm" ]; then
110110
JIRA_PROJECT="HHH"
111111
elif [ "$PROJECT" == "reactive" ]; then
112112
JIRA_PROJECT="HREACT"
113+
elif [ "$PROJECT" == "tools" ]; then
114+
JIRA_PROJECT="HBX"
113115
elif [[ $PROJECT =~ ^infra-.+ ]]; then
114116
echo 'No JIRA project available'
115117
else

validate-release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ elif [ "$PROJECT" == "reactive" ]; then
3131
STRIPPED_SUFFIX_FOR_TAG=".Final"
3232
elif [ "$PROJECT" == "hcann" ]; then
3333
STRIPPED_SUFFIX_FOR_TAG=""
34+
elif [ "$PROJECT" == "tools" ]; then
35+
STRIPPED_SUFFIX_FOR_TAG=""
3436
else
3537
echo "ERROR: Unknown project name $PROJECT"
3638
exit 1

0 commit comments

Comments
 (0)