diff options
-rw-r--r-- | Jenkinsfile | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 0de240fa..c81dc1d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,24 +56,6 @@ def setDescription() { item.save() } -def setGitHubStatus(state, description) { - if (isCustomBuild()) - return - - withCredentials([string(credentialsId: 'GitHub-API-Token', variable: 'TOKEN')]) { - def commitId = sh(returnStdout: true, script: "git rev-parse HEAD").trim() - def postBody = [ - state: "${state}", - target_url: "${BUILD_URL}", - description: "${description}", - context: 'continuous-integration/jenkins', - ] - def postBodyString = groovy.json.JsonOutput.toJson(postBody) - sh "curl 'https://api.github.com/repos/vyos/vyos-build/statuses/${commitId}?access_token=${TOKEN}' \ - -H 'Content-Type: application/json' -X POST -d '${postBodyString}' -k" - } -} - /* Only keep the 10 most recent builds. */ def projectProperties = [ [$class: 'BuildDiscarderProperty',strategy: [$class: 'LogRotator', numToKeepStr: '1']], @@ -102,7 +84,6 @@ pipeline { stage('Configure') { steps { script { - setGitHubStatus("pending", "Build is pending.") sh """ ./configure --build-by="autobuild@vyos.net" --debian-mirror="http://ftp.us.debian.org/debian/" """ @@ -151,17 +132,6 @@ pipeline { ssh ${SSH_OPTS} ${SSH_REMOTE} -t "bash --login -c '/usr/bin/make-latest-rolling-symlink.sh'" """ } - - setGitHubStatus("success", "Build has succeeded!") - } - } - failure { - script { - // only deploy ISO if build from official repository - if (isCustomBuild()) - return - - setGitHubStatus("failure", "Build has failed!") } } cleanup { |