From 1ea83fbbb9d8c1a5d3c83a8145fed029714deaa4 Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Wed, 17 Jan 2024 12:27:47 +0100 Subject: [PATCH] #13 use HTTP basic auth --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0e65a41..688da14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,9 +52,8 @@ pipeline { steps { echo 'Triggering deploy webhook' script { - def body = '{"secret": "$DEPLOY_SECRET"}' def response = httpRequest contentType: 'APPLICATION_JSON', - httpMode: 'POST', requestBody: body, + httpMode: 'POST', authentication: 'AMARILLO-JENKINS-DEPLOY-SECRET', url: "${DEPLOY_WEBHOOK_URL}" println("Status: ${response.status}")