X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpypi-tag-release.sh;h=2d098ee5180a26e6709486f15849b353b5413c97;hb=refs%2Fchanges%2F66%2F61966%2F2;hp=d920c54d01bbd50c901ee0e96d0811410b9cbf80;hpb=381cc03ffab74fb347bd1d8a17e7bc2703111650;p=releng%2Fglobal-jjb.git diff --git a/shell/pypi-tag-release.sh b/shell/pypi-tag-release.sh index d920c54d..2d098ee5 100644 --- a/shell/pypi-tag-release.sh +++ b/shell/pypi-tag-release.sh @@ -92,17 +92,14 @@ verify_dist(){ fi } -# TODO: how to tag Github? +# sigul is only available on Centos tag_gerrit(){ echo "INFO: Verifying tag $VERSION in repo" # Import public signing key gpg --import "$SIGNING_PUBKEY" - # Fail if tag exists if git tag -v "$VERSION"; then - echo "ERROR: Repo already tagged" - exit 1 - else - echo "INFO: Repo has not yet been tagged" + echo "INFO: Repo already tagged" + return 0 fi echo "INFO: Tagging repo" git tag -am "${PROJECT//\//-} $VERSION" "$VERSION" @@ -147,5 +144,6 @@ if $USE_RELEASE_FILE; then fi verify_version verify_dist +# TODO: write tag_github function tag_gerrit echo "---> pypi-tag-release.sh ends"