From 3cf2ccb359b53a445e97242742605c81ca5a0bf9 Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Fri, 21 Jun 2024 13:00:22 +0200 Subject: [PATCH] Added Jenkinsfile --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c2c7d2b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,19 @@ +pipeline { + agent { label 'builtin' } + environment { + DEPLOY_WEBHOOK_URL = "http://amarillo.mfdz.de:8888/${env.BRANCH_NAME}" + DEPLOY_SECRET = credentials('AMARILLO-JENKINS-DEPLOY-SECRET') + } + stages { + stage('Notify CD script') { + steps { + echo 'Triggering deploy webhook' + script { + def response = httpRequest contentType: 'APPLICATION_JSON', + httpMode: 'POST', requestBody: '{}', authentication: 'AMARILLO-JENKINS-DEPLOY-SECRET', + url: "${DEPLOY_WEBHOOK_URL}" + } + } + } + } +} \ No newline at end of file