-
Create a GitLab Access Token with api scope on GitLab, then add token to credentials
-
Add GitLab Connection
- Add gitLabConnection and gitlabCommitStatus
options {
gitLabConnection gitLabConnection: 'Gitlab', jobCredentialId: 'Gitlab_Token', useAlternativeCredential: true
gitlabCommitStatus('Build with Jenkins')
}
- Now you will have status like this