Hello,
I am using the following block but it does not generate the desired XML.
If i use the following snippet
triggers {
gitlabPush {
includeBranches('include')
buildOnMergeRequestEvents(false)
buildOnPushEvents(true)
enableCiSkip(false)
setBuildDescription(true)
addNoteOnMergeRequest(false)
rebuildOpenMergeRequest('never')
addVoteOnMergeRequest(false)
useCiFeatures(true)
acceptMergeRequestOnSuccess(false)
}
}
The XML it generates is as follows
riggers class="vector"><com.dabsquared.gitlabjenkins.GitLabPushTrigger><triggerOnPush>true
</triggerOnPush> <triggerOnMergeRequest>false
</triggerOnMergeRequest> <triggerOpenMergeRequestOnPush>never
</triggerOpenMergeRequestOnPush> <setBuildDescription>true
</setBuildDescription> <addNoteOnMergeRequest>false
</addNoteOnMergeRequest> <addCiMessage>true
</addCiMessage> <addVoteOnMergeRequest>false
</addVoteOnMergeRequest> <includeBranchesSpec>include
</includeBranchesSpec> <acceptMergeRequestOnSuccess>false
</acceptMergeRequestOnSuccess> <allowAllBranches>false
</allowAllBranches> </com.dabsquared.gitlabjenkins.GitLabPushTrigger> </triggers>
You will notice that while the "includeBranchSpec" is indicated, the branchTypeFilter is not set to 'NameBranchFilter' and allowAllBranches is set to 'false', somehow, this causes the UI to show "Allow All Branches" as checked.
Is this a bug in the DSL or the Gitlab Plugin?
Job DSL - 1.53
Gitlab Plugin - 1.4.3
How can i fix this with a configure block?
Regards,
Z