From: James E. Blair Date: Wed, 2 Dec 2020 22:24:39 +0000 (-0800) Subject: Create the archives directory in deploy-logs X-Git-Tag: v0.60.0~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=becdc0eb6b155239bbf866be8890e453f2f146ba;p=releng%2Fglobal-jjb.git Create the archives directory in deploy-logs The 'lftools deploy archives' command expects $WORKSPACE/archives to already exist. Normally it would be created by lf-infra-sysstat, but to support the use of the deploy-logs macro in jobs which do not run sysstat (and generally to make this macro entirely self-contained), ensure the archives directory exists at the start of the script. Signed-off-by: James E. Blair Change-Id: Id90c77c3f2a6a9590b9b17f9223279d21066a3cf --- diff --git a/shell/logs-deploy.sh b/shell/logs-deploy.sh index 647f9c59..7522e81b 100644 --- a/shell/logs-deploy.sh +++ b/shell/logs-deploy.sh @@ -18,6 +18,12 @@ lf-activate-venv lftools # Disable 'globbing' set -euf -o pipefail +# The 'lftool deploy archives' command below expects the archives +# directory to exist. Normally lf-infra-sysstat or similar would +# create it and add content, but to make sure this script is +# self-contained, we ensure it exists here. +mkdir -p "$WORKSPACE/archives" + function get_pattern_opts() { opts=()