1 Star 0 Fork 0

CHAO / jenkins-cli

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
release.sh 711 Bytes
Copy Edit Web IDE Raw Blame History
Rick authored 2019-08-02 18:57 . Generate sha256 text file
#!/bin/sh
VERSION=$(hub tag --list | sort -V | tail -n 1)
VERSION_BITS=(${VERSION//./ })
VNUM1=${VERSION_BITS[0]}
VNUM2=${VERSION_BITS[1]}
VNUM3=${VERSION_BITS[2]}
VNUM3=$((VNUM3+1))
NEW_TAG="$VNUM1.$VNUM2.$VNUM3"
echo "Updating $VERSION to $NEW_TAG"
#get current hash and see if it already has a tag
# GIT_COMMIT=`git rev-parse HEAD`
# NEEDS_TAG=`git describe --contains $GIT_COMMIT`
if [[ -z "${NEEDS_TAG}" ]]; then
make release VERSION=${NEW_TAG}
hub release create -c -a release/jcli-darwin-amd64.tar.gz \
-a release/jcli-linux-amd64.tar.gz \
-a release/jcli-windows-386.tar.gz \
-a release/jcli-darwin-amd64.txt \
-a release/jcli-linux-amd64.txt \
-a release/jcli-windows-386.txt ${NEW_TAG}
fi

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/lhc0101/jenkins-cli.git
git@gitee.com:lhc0101/jenkins-cli.git
lhc0101
jenkins-cli
jenkins-cli
master

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385