From c90e372a85e6e6aea73ae0eac1b654a028e52dfb Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Mon, 3 Apr 2023 10:15:40 +0200 Subject: [PATCH 1/3] add service webhook call --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b20d97a..c33728c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,6 +32,12 @@ pipeline { } } } + post { + success { + sh 'echo triggering the portainer service webhook' + sh 'curl https://portainer.d4science.org/api/webhooks/e355d76f-38eb-48a7-adb5-ba960443e2e0' + } + } } stage('Remove Unused docker image') { steps{ From d28059ec7df5b0f30283c5f9a23922e1d732712e Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Mon, 3 Apr 2023 10:30:36 +0200 Subject: [PATCH 2/3] fix webhook call --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c33728c..608b543 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,7 +35,7 @@ pipeline { post { success { sh 'echo triggering the portainer service webhook' - sh 'curl https://portainer.d4science.org/api/webhooks/e355d76f-38eb-48a7-adb5-ba960443e2e0' + sh 'curl -X POST https://portainer.d4science.org/api/webhooks/e355d76f-38eb-48a7-adb5-ba960443e2e0' } } } From 5c6a6ab21b4e7529f6f9743e1a57e97073e7d71c Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Mon, 3 Apr 2023 10:41:00 +0200 Subject: [PATCH 3/3] fix webhook call --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 608b543..d2e63c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,7 +35,7 @@ pipeline { post { success { sh 'echo triggering the portainer service webhook' - sh 'curl -X POST https://portainer.d4science.org/api/webhooks/e355d76f-38eb-48a7-adb5-ba960443e2e0' + sh 'curl -X POST https://portainer.d4science.org/api/webhooks/e355d76f-38eb-48a7-adb5-ba960443e2e0' } } }