Skip to content

Commit

Permalink
add relase.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <[email protected]>
  • Loading branch information
ceki committed Jan 25, 2022
1 parent 02860b6 commit 5617387
Showing 1 changed file with 10 additions and 42 deletions.
52 changes: 10 additions & 42 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,49 +1,17 @@
#mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${VERSION_NUMBER}
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${VERSION_NUMBER}

MVN='/java/maven-3.5.2//bin/mvn'
edit slf4j-log4j12 version

PASS=$1
echo $PASS
mvn clean
mvn install

function checkExit(){
if test "$?" != "0"; then
echo Command $1 exited with abnormal status
exit 1;
else echo $?
fi
}
mvn deploy -P javadocjar,sign-artifacts -Dgpg.passphrase=passwd

function echoThenRun () { # echo and then run the command
echo $1
$1
ret=$?
echo $ret
return $ret
}
#uncomment diffie-hellman support in /etc/ssh/sshd_config

$MVN clean
checkExit "mvn clean"
mvn site:deploy -N # with Java 8!!!

git tag -m "tagging" -a v_${VERSION_NUMBER}
git push --tags

$MVN install
checkExit "mvn install"


$MVN site:site
checkExit "mvn site:ste"


$MVN assembly:single
checkExit "mvn assembly:single"


$MVN deploy -P javadocjar,sign-artifacts -Dgpg.passphrase=$PASS
checkExit "mvn deploy -P javadocjar,sign-artifacts -Dgpg.passphrase=xxx"

#$MVN site:deploy -N # with Java 8!!!
#checkExit "mvn site:deploy -N"

#git tag -m "tagging" -a v_${VERSION_NUMBER}
#git push --tags

#release version and add next version on jira
release version and add next version on jira

0 comments on commit 5617387

Please sign in to comment.