Skip to content

Commit

Permalink
Body må være JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
zapodot committed Oct 13, 2023
1 parent b796b3f commit e6c3f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit e6c3f9b

Please sign in to comment.