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