Skip to content

Latest commit

 

History

History

gitlab-build-status

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Update GitLab Build Status

Add GitLab connection

  • Create a GitLab Access Token with api scope on GitLab, then add token to credentials

  • Add GitLab Connection

image

Config Jenkinsfile

  • Add gitLabConnection and gitlabCommitStatus
options {
    gitLabConnection gitLabConnection: 'Gitlab', jobCredentialId: 'Gitlab_Token', useAlternativeCredential: true
    gitlabCommitStatus('Build with Jenkins')
}
  • Now you will have status like this

image