-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: gitlab-plugin, job-dsl-plugin
-
Environment:Jenkins: 1.651.1 / 2.0
Job DSL-Plugin 1.45
Gitlab-Plugin 1.2.1
Hi,
it seems when using the gitlab-plugin via DSL, it is unable to activate the branch-trigger:
triggers {
gitlabPush {
buildOnMergeRequestEvents(false)
buildOnPushEvents(true)
enableCiSkip()
setBuildDescription()
addNoteOnMergeRequest(false)
rebuildOpenMergeRequest('never')
addVoteOnMergeRequest(false)
useCiFeatures(true)
acceptMergeRequestOnSuccess(false)
allowAllBranches(false)
includeBranches(branchName.toString())
excludeBranches('')
}
}
should result in the checkbox "Build when a change is pushed to GitLab. GitLab CI Service URL: http://jenkins.xxx.local/" should be activated and the plugin working. But it doesnt.