mirror of https://github.com/qos-ch/slf4j
gpg password on a dedicated panel
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
This commit is contained in:
parent
82a592ed79
commit
6afe5ab7a7
23
release.sh
23
release.sh
|
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
MVN='/java/maven-3.5.2//bin/mvn'
|
MVN='/java/maven-3.5.2//bin/mvn'
|
||||||
|
|
||||||
PASS=$1
|
|
||||||
echo $PASS
|
|
||||||
|
|
||||||
function checkExit(){
|
function checkExit(){
|
||||||
if test "$?" != "0"; then
|
if test "$?" != "0"; then
|
||||||
echo Command $1 exited with abnormal status
|
echo Command $1 exited with abnormal status
|
||||||
|
|
@ -21,7 +18,7 @@ function echoRunAndCheck () { # echo and then run the command
|
||||||
then
|
then
|
||||||
echo Failed command: $1
|
echo Failed command: $1
|
||||||
exit 1;
|
exit 1;
|
||||||
else echo Succussful run: $1
|
else echo Successful run: $1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -31,25 +28,23 @@ echoRunAndCheck "$MVN install"
|
||||||
|
|
||||||
#echoRunAndCheck "$MVN site:site"
|
#echoRunAndCheck "$MVN site:site"
|
||||||
|
|
||||||
echoRunAndCheck "$MVN javadoc:aggregate"
|
#echoRunAndCheck "$MVN javadoc:aggregate"
|
||||||
|
|
||||||
echoRunAndCheck "$MVN jxr:aggregate"
|
#echoRunAndCheck "$MVN jxr:aggregate"
|
||||||
|
|
||||||
echoRunAndCheck "$MVN assembly:single"
|
|
||||||
|
|
||||||
if [ ! -z "$PASS" ]
|
if [ ! -z "$PASS" ]
|
||||||
then
|
then
|
||||||
echoRunAndCheck "$MVN deploy -P javadocjar,sign-artifacts -Dgpg.passphrase=$PASS"
|
export GPG_TTY=$(tty)
|
||||||
|
echoRunAndCheck "$MVN deploy -P javadocjar,sign-artifacts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#$MVN site:deploy -N # with Java 8!!!
|
|
||||||
#checkExit "mvn site:deploy -N"
|
|
||||||
|
|
||||||
#git tag -m "tagging" -a v_${VERSION_NUMBER}
|
git tag -m "tagging" -a v_${VERSION_NUMBER}
|
||||||
#git push --tags
|
git push --tags
|
||||||
|
|
||||||
|
#Update release version and add next version on jira
|
||||||
|
|
||||||
#release version and add next version on jira
|
|
||||||
|
|
||||||
# for 1.7.x series, scp slf4j-1.7.*.tar.gz yvo.qos.ch:/var/www/www.slf4j.org/htdocs/dist/
|
|
||||||
|
|
||||||
echo Full Success
|
echo Full Success
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue