ci: resolve flux branch without Groovy dollar interpolation

This commit is contained in:
Brad Stein 2026-04-19 14:41:22 -03:00
parent 592d037522
commit e47a877169

2
Jenkinsfile vendored
View File

@ -156,7 +156,7 @@ PY
script {
env.FLUX_BRANCH = sh(
returnStdout: true,
script: "awk '/branch:/{print \\$2; exit}' clusters/atlas/flux-system/gotk-sync.yaml"
script: "grep -m1 '^\\s*branch:' clusters/atlas/flux-system/gotk-sync.yaml | sed 's/^\\s*branch:\\s*//'"
).trim()
if (!env.FLUX_BRANCH) {
error('Flux branch not found in gotk-sync.yaml')