-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RELEASE SCRIPT: Release narayana only
- Loading branch information
1 parent
b97d085
commit bac79b2
Showing
2 changed files
with
3 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,28 +19,14 @@ if [[ $WISSUEOK == n* ]] | |
then | ||
exit | ||
fi | ||
if [ $# -ne 3 ]; then | ||
echo 1>&2 "$0: usage: CURRENT NEXT WFLYISSUE" | ||
if [ $# -ne 2 ]; then | ||
echo 1>&2 "$0: usage: CURRENT NEXT" | ||
exit 2 | ||
else | ||
CURRENT=$1 | ||
NEXT=$2 | ||
WFLYISSUE=$3 | ||
fi | ||
|
||
if [[ $(uname) == CYGWIN* ]] | ||
then | ||
docker-machine env --shell bash | ||
if [[ $? != 0 ]]; then | ||
exit | ||
fi | ||
eval "$(docker-machine env --shell bash)" | ||
read -p "ARE YOU RUNNING AN ELEVATED CMD PROMPT docker needs this" ELEV | ||
if [[ $ELEV == n* ]] | ||
then | ||
exit | ||
fi | ||
fi | ||
read -p "You will need: VPN, credentials for jbosstm@filemgmt, jira admin, github permissions on all jbosstm/ repo and nexus permissions. Do you have these?" ENVOK | ||
if [[ $ENVOK == n* ]] | ||
then | ||
|
@@ -51,11 +37,6 @@ if [[ $M2OK == n* ]] | |
then | ||
exit | ||
fi | ||
read -p "You will need: docker.io account with permission to push under https://hub.docker.com/u/jbosstm/. Do you have these? y/n: " ENVOK | ||
if [[ $ENVOK == n* ]] | ||
then | ||
exit | ||
fi | ||
read -p "Until ./scripts/release/update_jira.py -k JBTM -t 5.next -n $CURRENT is fixed you will need to go to https://issues.jboss.org/projects/JBTM?selectedItem=com.atlassian.jira.jira-projects-plugin%3Arelease-page&status=released-unreleased, rename (Actions -> Edit) 5.next to $CURRENT, create a new 5.next version, Actions -> Release on the new $CURRENT. Have you done this? y/n " JIRAOK | ||
if [[ $JIRAOK == n* ]] | ||
then | ||
|
@@ -66,12 +47,6 @@ fi | |
docker login docker.io | ||
[ $? -ne 0 ] && echo "Login to docker.io was not succesful" && exit | ||
|
||
#if [ -z "$WFLYISSUE" ] | ||
#then | ||
#./scripts/release/update_upstream.py -s WFLY -n $CURRENT | ||
# exit | ||
#fi | ||
|
||
git fetch upstream --tags | ||
set +e | ||
git tag | grep $CURRENT | ||
|
@@ -118,42 +93,6 @@ else | |
read | ||
fi | ||
|
||
if [ ! -d "jboss-as" ] | ||
then | ||
(git clone [email protected]:jbosstm/jboss-as.git -o jbosstm; cd jboss-as; git remote add upstream [email protected]:wildfly/wildfly.git) | ||
fi | ||
cd jboss-as | ||
git fetch jbosstm | ||
git branch | grep $WFLYISSUE | ||
if [[ $? != 0 ]] | ||
then | ||
git fetch upstream; | ||
git checkout -b ${WFLYISSUE} | ||
git reset --hard upstream/master | ||
CURRENT_VERSION_IN_WFLY=`grep 'narayana>' pom.xml | cut -d \< -f 2|cut -d \> -f 2` | ||
if [[ $(uname) == CYGWIN* ]] | ||
then | ||
sed -i "s/narayana>$CURRENT_VERSION_IN_WFLY/narayana>$CURRENT/g" pom.xml | ||
else | ||
sed -i "s/narayana>$CURRENT_VERSION_IN_WFLY/narayana>$CURRENT/g" pom.xml | ||
fi | ||
git add pom.xml | ||
git commit -m "${WFLYISSUE} Upgrade Narayana to $CURRENT" | ||
git push --set-upstream jbosstm ${WFLYISSUE} | ||
git checkout 5_BRANCH | ||
git reset --hard jbosstm/5_BRANCH | ||
xdg-open https://github.com/jbosstm/jboss-as/pull/new/$WFLYISSUE % | ||
fi | ||
cd .. | ||
|
||
cd ~/tmp/narayana/$CURRENT/sources/documentation/ | ||
git checkout $CURRENT | ||
if [[ $? != 0 ]] | ||
then | ||
echo 1>&2 documentation: Tag '$CURRENT' did not exist | ||
exit | ||
fi | ||
|
||
rm -rf $PWD/localm2repo | ||
./build.sh clean install -Dmaven.repo.local=${PWD}/localm2repo -Prelease | ||
rm -rf $PWD/localrepo | ||
|
@@ -208,20 +147,6 @@ then | |
fi | ||
cd - | ||
|
||
# Building and pushing the lra coordinator docker image | ||
cd ~/tmp/narayana/$CURRENT/sources/jboss-dockerfiles/lra/lra-coordinator | ||
git checkout $CURRENT | ||
if [[ $? != 0 ]] | ||
then | ||
echo 1>&2 jboss-dockerfiles: Tag $CURRENT did not exist | ||
exit | ||
fi | ||
docker build -t lra-coordinator --build-arg NARAYANA_VERSION=${CURRENT} . | ||
docker tag lra-coordinator:latest docker.io/jbosstm/lra-coordinator:${CURRENT} | ||
docker tag lra-coordinator:latest docker.io/jbosstm/lra-coordinator:latest | ||
docker push docker.io/jbosstm/lra-coordinator:${CURRENT} | ||
docker push docker.io/jbosstm/lra-coordinator:latest | ||
|
||
xdg-open http://narayanaci1.eng.hst.ams2.redhat.com/view/Release/ & | ||
echo "Press enter when the centos54x64 and vc9x32 artifacts are available from http://narayanaci1.eng.hst.ams2.redhat.com/view/Release/ are available" | ||
read | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ TEMP_WORKING_DIR=~/tmp/narayana/$CURRENT/sources/ | |
mkdir -p $TEMP_WORKING_DIR | ||
cd $TEMP_WORKING_DIR || fatal | ||
|
||
for REPO in documentation quickstart performance narayana '[email protected]:jboss-dockerfiles/narayana.git jboss-dockerfiles' | ||
for REPO in narayana | ||
do | ||
echo "" | ||
echo "=== TAGGING AND UPDATING $REPO ===" | ||
|