summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2020-05-18 10:22:06 +0100
committerDavid Spickett <david.spickett@linaro.org>2020-05-18 09:24:33 +0000
commitd18e3be48a10529d89058afb29f43c2da60af226 (patch)
treebaf6a3f2d861823ebbd743a1f04508a2867c426a
parent765d89c2116e1338bb3e2e9df66f0a4dda464b9e (diff)
jenkins-helpers.sh: Fix log_url unbound error
local only sets scope it needs a value to actually exist. Change-Id: I6a790da6022b4ad95e1c5534b325f4c170131b74
-rw-r--r--jenkins-helpers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jenkins-helpers.sh b/jenkins-helpers.sh
index 32050ee1..83f950ae 100644
--- a/jenkins-helpers.sh
+++ b/jenkins-helpers.sh
@@ -1258,7 +1258,7 @@ run_step ()
full_step_name=$(printf "%02d" $run_step_count)-$pretty_step
# This is used when accessing the workspace
run_step_artifacts=$run_step_top_artifacts/$full_step_name
- local log_url
+ local log_url=""
if [ -v BUILD_URL ]; then
# Link to jenkins, valid once the job has finished
log_url="(${BUILD_URL}artifact/artifacts/$full_step_name/console.log)"