-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins 2.6
Job DSL 1.47
Gitlab plugin 1.2.3
Hi,
the aforementioned versions of the Job DSL + the gitlab plugin don't activate the GitLabCommitStatusPublisher needed for the CI features of Gitlab to work.
The line
<com.dabsquared.gitlabjenkins.publisher.GitLabCommitStatusPublisher plugin="gitlab-plugin@1.2.3"/>
is missing from the generated xml, which is needed because we want to show gitlab that builds are in progress, to get the results of jenkins jobs to gitlab merge requests etc.
Our job dsl snippet for the gitlab trigger is:
triggers {
gitlabPush
}
If you want to use the "Publish build status to GitLab commit" post-build action, you need to add it explicitly in the Job DSL script.
job('example') { publishers { gitLabCommitStatusPublisher() } }