Skip to content
Permalink
Browse files

Jenkinsfile: post result to GitLab.

  • Loading branch information...
greenrobot-team committed Oct 2, 2018
1 parent 7cc6717 commit faaafa047163a69d8157b79ef03d3c3268cfb114
Showing with 13 additions and 0 deletions.
  1. +13 −0 Jenkinsfile
@@ -19,6 +19,14 @@ def COLOR_MAP = ['SUCCESS': 'good', 'FAILURE': 'danger', 'UNSTABLE': 'danger', '
pipeline {
agent any

environment {
GITLAB_URL = credentials('gitlab_url')
}

options {
gitLabConnection("${env.GITLAB_URL}")
}

triggers {
upstream(upstreamProjects: "objectbox-java/${env.BRANCH_NAME.replaceAll("/", "%2F")}",
threshold: hudson.model.Result.FAILURE)
@@ -56,6 +64,11 @@ pipeline {
failure {
slackSend color: "danger",
message: "Failed: ${currentBuild.fullDisplayName}\n${env.BUILD_URL}"
updateGitlabCommitStatus name: 'build', state: 'failed'
}

success {
updateGitlabCommitStatus name: 'build', state: 'success'
}
}
}

0 comments on commit faaafa0

Please sign in to comment.
You can’t perform that action at this time.