From e6c3f9bd02a621e7f41e457c95c809f12963b1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Eikanger=20Kval=C3=B8?= Date: Fri, 13 Oct 2023 16:23:49 +0200 Subject: [PATCH] =?UTF-8?q?Body=20m=C3=A5=20v=C3=A6re=20JSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ade7781..c8e8e00 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,7 +75,7 @@ pipeline { 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" + httpRequest acceptType: 'APPLICATION_JSON', contentType: 'APPLICATION_JSON', authentication: 'Github-token-login', httpMode: 'POST', requestBody: """{"tag_name": "${env.RELEASE_VERSION}", "name": "${env.RELEASE_VERSION}", "body": "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.RELEASE_VERSION}"