From: Eric Ball Date: Fri, 12 Feb 2021 18:58:39 +0000 (-0800) Subject: Fix lfParallelCostCapture env var name X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F66781%2F1;p=releng%2Fpipelines.git 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 --- 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)