project-pattern: "{project}"
branches:
- branch-compare-type: "ANT"
- branch-pattern: "**/master"
+ branch-pattern: "**/{branch}"
file-paths: "{obj:gerrit_trigger_file_paths}"
skip-vote:
successful: "{gerrit-skip-vote}"
project-pattern: "{project}"
branches:
- branch-compare-type: "ANT"
- branch-pattern: "**/master"
+ branch-pattern: "**/{branch}"
file-paths: "{obj:gerrit_trigger_file_paths}"
--- /dev/null
+---
+fixes:
+ - |
+ Fix the release job script to handle any trailing '/' set on log_dir
+ and also handle unbound variables correctly.
--- /dev/null
+---
+issues:
+ - |
+ Update release job template to tigger on any branch name, and not just
+ 'master'. ODL projects branches are version '4.0.x' which requires
+ passing the branch name to the template.
exit 1
fi
+NEXUSPROXY="${NEXUSPROXY:-None}"
NEXUS_URL="${NEXUSPROXY:-$NEXUS_URL}"
# Fetch the release-schema.yaml
LOGS_URL="${LOGS_SERVER}/${NEXUS_PATH}${LOG_DIR}"
PATCH_DIR="$(mktemp -d)"
-wget --quiet -P "$PATCH_DIR" "${LOGS_URL}"staging-repo.txt.gz
+LOGS_URL=${LOGS_URL%/} # strip any trailing '/'
+wget -P "$PATCH_DIR" "${LOGS_URL}/"staging-repo.txt.gz
nexus_release(){
for staging_url in $(zcat "$PATCH_DIR"/staging-repo.txt.gz | awk -e '{print $2}'); do