From 5093392716750146837bf8b25165b1ebe1dba24a Mon Sep 17 00:00:00 2001 From: Firas Sawan Date: Mon, 9 Mar 2020 21:46:05 -0400 Subject: [PATCH] asd --- Jenkinsfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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