X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frelease-announce.sh;h=5f94bc53de382145c9d4a6cc7a8d23a16141c751;hb=04853ec1c27444d494afae28e8c181b711280f4b;hp=fd1afe6014620263f687ceaa87f4388fe4c5fa69;hpb=d499fb48afd7c2e2f317018b21e0620ba681bd98;p=releng%2Fglobal-jjb.git diff --git a/shell/release-announce.sh b/shell/release-announce.sh index fd1afe60..5f94bc53 100644 --- a/shell/release-announce.sh +++ b/shell/release-announce.sh @@ -8,8 +8,14 @@ # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## +echo "---> release-announce.sh" + +if [[ $PROJECT_SLUG != "" ]]; then + PROJECT="$PROJECT_SLUG" +else + PROJECT="${GERRIT_PROJECT#releng/}" # For releng projects strip the prefix +fi -PROJECT="${GERRIT_PROJECT#releng/}" # For releng projects strip the prefix TAG_NAME="${GERRIT_REFNAME#refs/tags/}" set -eux -o pipefail