Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Repair pypi template tag and trigger behaviors
[releng/global-jjb.git]
/
shell
/
pypi-tag-release.sh
diff --git
a/shell/pypi-tag-release.sh
b/shell/pypi-tag-release.sh
index
d920c54
..
2d098ee
100644
(file)
--- a/
shell/pypi-tag-release.sh
+++ b/
shell/pypi-tag-release.sh
@@
-92,17
+92,14
@@
verify_dist(){
fi
}
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"
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
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"
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
fi
verify_version
verify_dist
+# TODO: write tag_github function
tag_gerrit
echo "---> pypi-tag-release.sh ends"
tag_gerrit
echo "---> pypi-tag-release.sh ends"