X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frelease-announce.sh;h=5f94bc53de382145c9d4a6cc7a8d23a16141c751;hb=04853ec1c27444d494afae28e8c181b711280f4b;hp=af4ce6939f76fadaed7911d41c5e09f7daac9fb4;hpb=bc5892ef503dc4039aa0aae4043e5c9b2cc9a363;p=releng%2Fglobal-jjb.git diff --git a/shell/release-announce.sh b/shell/release-announce.sh index af4ce693..5f94bc53 100644 --- a/shell/release-announce.sh +++ b/shell/release-announce.sh @@ -10,7 +10,12 @@ ############################################################################## echo "---> release-announce.sh" -PROJECT="${GERRIT_PROJECT#releng/}" # For releng projects strip the prefix +if [[ $PROJECT_SLUG != "" ]]; then + PROJECT="$PROJECT_SLUG" +else + PROJECT="${GERRIT_PROJECT#releng/}" # For releng projects strip the prefix +fi + TAG_NAME="${GERRIT_REFNAME#refs/tags/}" set -eux -o pipefail