Skip to content

Commit

Permalink
Prøver igjen
Browse files Browse the repository at this point in the history
  • Loading branch information
zapodot committed Oct 13, 2023
1 parent 264b064 commit 641ad7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

}
Expand Down

0 comments on commit 641ad7d

Please sign in to comment.