diff --git a/Jenkinsfile b/Jenkinsfile index cf0ee7a6..303bfd37 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 d3a37c44..0d494c18 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')