From 122eea521571a015bc2755611c495d3f973ef739 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Jun 15 2021 04:18:06 +0000 Subject: Escape $ to fix Jenkins interpolation warning (#5178) Escaping $ in "" string makes the variable expanded by shell, and not Jenkins itself Explained in example in official docs https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#for-other-credential-types --- diff --git a/.cico.pipeline b/.cico.pipeline index e924957..3323f4f 100644 --- a/.cico.pipeline +++ b/.cico.pipeline @@ -9,7 +9,7 @@ def notifyPagurePR(repo, msg, status, phase, credentials = 'pagure-auth'){ wait for jenkins to be done, so if we wait for pagure's answer we're basically stuck in a loop where both jenkins and pagure are waiting for each other */ - sh "timeout 1 curl -X POST -d \'$json\' https://pagure.io/api/0/ci/jenkins/$repo/${PAGURE_PUSH_SECRET}/build-finished -H \"Content-Type: application/json\" | true" + sh "timeout 1 curl -X POST -d \'$json\' https://pagure.io/api/0/ci/jenkins/$repo/\${PAGURE_PUSH_SECRET}/build-finished -H \"Content-Type: application/json\" | true" } }