diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-10-03 19:30:33 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-10-03 19:30:35 +0200 |
commit | 9aacc1b12255d92fc396921a2e33d03538aaf452 (patch) | |
tree | 6788e42442f49cbae44deb883285b31a4c725b14 /Jenkinsfile | |
parent | dc5ebff17fa15a81a8c510703d854bc56905d14e (diff) | |
download | vyos-build-9aacc1b12255d92fc396921a2e33d03538aaf452.tar.gz vyos-build-9aacc1b12255d92fc396921a2e33d03538aaf452.zip |
Jenkins: explicitly set GitHub status is no longer required
... as this is done through the Jenkins Jobs automatically.
Diffstat (limited to 'Jenkinsfile')
-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 { |