From aa5a7ec80138f2a6f041ef1d5dfaeb4e766f60ff Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Wed, 17 Jan 2024 11:31:22 +0100 Subject: [PATCH] #13 fixed deploy secret string interpolation --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2289bd4..96aea96 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,9 +52,9 @@ pipeline { steps { echo 'Triggering deploy webhook' script { - def body = """ - {"secret": "${DEPLOY_SECRET}"} - """ + def body = ' + {"secret": "$DEPLOY_SECRET"} + ' def response = httpRequest contentType: 'APPLICATION_JSON', httpMode: 'POST', requestBody: body, url: "${DEPLOY_WEBHOOK_URL}"