From a84647c6f6d5751189aa9b2d2c29e14efae33acc Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Apr 12 2018 20:49:11 +0000 Subject: quote the var Merges https://pagure.io/pagure/pull-request/3160 --- diff --git a/.cico.pipeline b/.cico.pipeline index 416b37a..6f5f3e6 100644 --- a/.cico.pipeline +++ b/.cico.pipeline @@ -4,8 +4,8 @@ def notifyPagurePR(repo, msg, status, credentials = 'pagure-auth'){ def json = JsonOutput.toJson([name: 'pagure', url: env.JOB_NAME, build: [full_url: currentBuild.absoluteUrl, status: status, number: currentBuild.number]]) println json - withCredentials([string(credentialsId: credentials, variable: PAGURE_PUSH_SECRET)]) { - sh "curl -X POST -d \'$json\' https://pagure.io/api/0/ci/jenkins/$repo/${env.PAGURE_PUSH_SECRET}/build-finished" + withCredentials([string(credentialsId: credentials, variable: "PAGURE_PUSH_SECRET")]) { + sh "curl -X POST -d \'$json\' https://pagure.io/api/0/ci/jenkins/$repo/${PAGURE_PUSH_SECRET}/build-finished" } }