From 46d8313d362d7075c0f562900eedc504c24ea18a Mon Sep 17 00:00:00 2001 From: Eric Ball Date: Fri, 12 Feb 2021 10:58:39 -0800 Subject: [PATCH] Fix lfParallelCostCapture env var name Correct env var is BUILD_TAG, not BUILD-TAG. A hyphen in the var name is a syntax error in Groovy. Issue: RELENG-3207 Signed-off-by: Eric Ball Change-Id: I30e97b25ae978994e3bd468b83d3363f6dd3fcd8 --- vars/lfParallelCostCapture.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/lfParallelCostCapture.groovy b/vars/lfParallelCostCapture.groovy index 41e89f4..9f60d84 100644 --- a/vars/lfParallelCostCapture.groovy +++ b/vars/lfParallelCostCapture.groovy @@ -19,7 +19,7 @@ def call() { sh(script: libraryResource('shell/job-cost.sh')) cost_str = sh(script: "cat $WORKSPACE/archives/cost.csv | cut -d, -f6", returnStdout: true) - lock("${BUILD-TAG}-stack-cost") { + lock("${BUILD_TAG}-stack-cost") { try { unstash "stack-cost" stack_cost = sh(script: "cat stack-cost | awk '{print \$2}", returnStdout: true) -- 2.16.6