Chore: Upgrade Jenkins-job-builder to 6.3.0
[releng/global-jjb.git] / shell / release-announce.sh
index fd1afe6..5f94bc5 100644 (file)
@@ -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