diff --git a/Jenkinsfile b/Jenkinsfile index fe9a476e5..96177c098 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,6 @@ -String buildUrl = "${BUILD_URL}" -String gitStatusPostUrl = "https://:x-oauth-basic@api.github.com/repos///statuses/${gitHash}" - pipeline { + String buildUrl = "${BUILD_URL}" + String gitStatusPostUrl = "https://:x-oauth-basic@api.github.com/repos///statuses/${gitHash}" agent any stages { stage('Build') { @@ -41,8 +40,7 @@ pipeline { } } + sh """ + curl -X POST -H "application/json" -d '{"state":"success", "target_url":"${buildUrl}", "description":"Build Success", "context":"build/job"}' "${gitStatusPostUrl}" + """ } - -sh """ -curl -X POST -H "application/json" -d '{"state":"success", "target_url":"${buildUrl}", "description":"Build Success", "context":"build/job"}' "${gitStatusPostUrl}" -""" \ No newline at end of file