From c821b63a5a636f8449d372bcc9e30e7d1e4cbbb1 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 19 Oct 2023 16:01:12 +0200 Subject: [PATCH] add calls to portainer webhook --- JenkinsFile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/JenkinsFile b/JenkinsFile index 868a400..bd491ca 100644 --- a/JenkinsFile +++ b/JenkinsFile @@ -41,4 +41,18 @@ pipeline { } } } -} \ No newline at end of file + post { + always { + script { + withCredentials([string(credentialsId: 'is-registry-devnext-hook', variable: 'REGISTRY_DEVNEXT')]) { + sh "curl -v $REGISTRY_DEVNEXT" + } + } + script { + withCredentials([string(credentialsId: 'is-registry-devsec-hook', variable: 'REGISTRY_DEVSEC')]) { + sh "curl -v $REGISTRY_DEVSEC" + } + } + } + } +}