From 641ad7d91fb3d5f36031be8d42911f742c37210c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Eikanger=20Kval=C3=B8?= Date: Fri, 13 Oct 2023 16:17:49 +0200 Subject: [PATCH] =?UTF-8?q?Pr=C3=B8ver=20igjen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4440aa5..5ba1aa0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -74,10 +74,12 @@ pipeline { post { success { gitPush() + warnError(message: "Feilet under opprettelse av release i Github repo") { + httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', authentication: 'Github-token-login', httpMode: 'POST', requestBody: "Release utført av ${env.user}", url: "https://api.github.com/repos/ks-no/${env.REPO_NAME}/releases", consoleLogResponseBody: true, validResponseCodes: "201" + } script { currentBuild.description = "${env.user} released version ${env.NEXT_VERSION}" } - httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', authentication: 'Github-token-login', httpMode: 'POST', requestBody: "Release utført av ${env.user}", url: "https://api.github.com/repos/ks-no/${env.repo}/releases", consoleLogResponseBody: true, validResponseCodes: "201" } }