From fbdda16f55d17d0a6fe404d927296a9e9b2cc5c7 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 10 Apr 2026 17:17:51 -0300 Subject: [PATCH] ci: escape awk branch field in groovy pipeline strings --- Jenkinsfile | 2 +- ci/Jenkinsfile.titan-iac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f82074a2..cf0ee7a6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -74,7 +74,7 @@ spec: script { env.FLUX_BRANCH = sh( returnStdout: true, - script: "awk '/branch:/{print $2; exit}' clusters/atlas/flux-system/gotk-sync.yaml" + script: "awk '/branch:/{print \\$2; exit}' clusters/atlas/flux-system/gotk-sync.yaml" ).trim() if (!env.FLUX_BRANCH) { error('Flux branch not found in gotk-sync.yaml') diff --git a/ci/Jenkinsfile.titan-iac b/ci/Jenkinsfile.titan-iac index 9b71004f..d3a37c44 100644 --- a/ci/Jenkinsfile.titan-iac +++ b/ci/Jenkinsfile.titan-iac @@ -73,7 +73,7 @@ spec: script { env.FLUX_BRANCH = sh( returnStdout: true, - script: "awk '/branch:/{print $2; exit}' clusters/atlas/flux-system/gotk-sync.yaml" + script: "awk '/branch:/{print \\$2; exit}' clusters/atlas/flux-system/gotk-sync.yaml" ).trim() if (!env.FLUX_BRANCH) { error('Flux branch not found in gotk-sync.yaml')