Skip to content

Commit 08bab8d

Browse files
committed
slurmCI: Fix matrix variable resolution
- Change resolveTemplate call to pass env directly instead of ['env': env] to enable resolution of matrix variables like ${arch} from the environment. - Add debug output to print original and resolved arg values for easier troubleshooting of template resolution issues. Signed-off-by: Daniel Pressler <danielpr@nvidia.com>
1 parent 839904f commit 08bab8d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

vars/slurmCI.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ int call(ctx, oneStep, config) {
2121
}
2222

2323
for (def entry in ctx.entrySet(args)) {
24-
args[entry.key] = ctx.resolveTemplate(['env': env], entry.value.toString(), config)
24+
def original = entry.value.toString()
25+
args[entry.key] = ctx.resolveTemplate(env, original, config)
26+
println("Resolved ${entry.key}: '${original}' -> '${args[entry.key]}'")
2527
}
2628
def stepRun = oneStep.run
2729
def allowedOps = ['allocation', 'run', 'stop', 'stopAllForBuild'] as Set

0 commit comments

Comments
 (0)