Unfortunatelly the name of the repo does not match the
configuration in the code and we need to make sure the
email notification announces the corrected name of the
project which should be lfdocs-conf.
Add a new PROJECT_SLUG variable to use in case the name
of the repo is different from its configuration.
Issue: IT-20404
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I0dc7b0088851ce8abf8238bc63e8e5bdbfc2ea9b
build-days-to-keep: 7
build-timeout: 15
disable-job: false
+ project-slug: ""
#####################
# Job Configuration #
build-days-to-keep: "{build-days-to-keep}"
builders:
+ - inject:
+ properties-content: PROJECT_SLUG={project-slug}
- shell: !include-raw-escape: ../shell/release-announce.sh
wrappers:
--- /dev/null
+---
+fixes:
+ - |
+ Fix email notifications for lfdocs-conf releases. The name of the repo
+ does not match the configuration in the code. Add a new PROJECT_SLUG
+ variable to use in case the name of the repo is different from its
+ configuration.
##############################################################################
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