-
Notifications
You must be signed in to change notification settings - Fork 176
/
narayana-release-process.sh
executable file
·63 lines (59 loc) · 1.9 KB
/
narayana-release-process.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
read -p "You will need: jira admin, github permissions on all jbosstm/ repo and nexus permissions. Do you have these?" ENVOK
if [[ $ENVOK == n* ]]
then
exit
fi
if [ $# -eq 0 ]; then
. scripts/pre-release-vars.sh
CURRENT=`echo $CURRENT_SNAPSHOT_VERSION | sed "s/-SNAPSHOT//"`
NEXT=`echo $CURRENT_SNAPSHOT_VERSION | sed "s/.Final//"`
NEXT="${NEXT%.*}.$((${NEXT##*.}+1))".Final
elif [ $# -lt 2 ]; then
echo 1>&2 "$0: not enough arguments: CURRENT NEXT (versions should end in .Final or similar)"
exit 2
elif [ $# -gt 2 ]; then
echo 1>&2 "$0: too many arguments: CURRENT NEXT (versions should end in .Final or similar)"
exit 2
else
CURRENT=$1
NEXT=$2
fi
set +e
git fetch upstream --tags
git tag | grep $CURRENT
if [[ $? != 0 ]]
then
set -e
git checkout 4.17
git log -n 10
echo Mark version as released in Jira and create next version: https://issues.jboss.org/plugins/servlet/project-config/JBTM/versions
echo Make sure you have the credentials in your .m2/settings.xml and ignore an error in the final module about missing javadocs
echo Watch out for sed -i "" in the pre-release.sh as it is does not work on Cygwin
read -p "Did the log before look OK?" ok
if [[ $ok == n* ]]
then
exit
else
ok=y
fi
(cd ./scripts/ ; ./pre-release.sh $CURRENT $NEXT)
else
set -e
ok=y
fi
if [[ $ok == y* ]]
then
git fetch upstream
git checkout $CURRENT
git clean -f -d
# Add -x (this will delete all files (e.g. IDE, new features) not under source control)
rm -rf $PWD/localm2repo
./build.sh clean install -Dmaven.repo.local=${PWD}/localm2repo -Prelease,all -Dmaven.javadoc.skip=true -DskipTests -pl :jbossjts-jacorb,:jbossxts,:jbossjts-integration,:byteman_support,:jbosstxbridge -am
rm -rf $PWD/localrepo
echo "Go to https://repository.jboss.org/nexus/index.html#welcome
Go to Staging Repositories
Find your repo
Close (no description)
Release (no description)"
fi