diff --git a/Jenkinsfile b/Jenkinsfile index 5cd513ef..47acd4f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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')