Fix lfParallelCostCapture env var name 81/66781/1
authorEric Ball <eball@linuxfoundation.org>
Fri, 12 Feb 2021 18:58:39 +0000 (10:58 -0800)
committerEric Ball <eball@linuxfoundation.org>
Fri, 12 Feb 2021 18:58:39 +0000 (10:58 -0800)
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 <eball@linuxfoundation.org>
Change-Id: I30e97b25ae978994e3bd468b83d3363f6dd3fcd8

vars/lfParallelCostCapture.groovy

index 41e89f4..9f60d84 100644 (file)
@@ -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)