Closed mc1arke closed 2 weeks ago
Thanks @mc1arke for the PR! I will review it over the next few days
Looks like you may want to run mvn spotless:apply
to fix the remaining failed checks
I will cut a release with this code change within the next 24 hours.
New release cut at https://github.com/jenkinsci/gitlab-plugin/releases/tag/gitlab-plugin-1.9.6
8ec69c7ada9da38a760f532b9dd34bdf538f8ccb introduced a change that does not handle jobs created using Jenkins DSL properly, as DSL jobs that do not specify
triggerOpenMergeRequestOnPush
have thetriggerOpenMergeRequest
value passed intoMergeRequestHookTriggerHandlerFactory
asnull
, with the above change causing the value not to be handled asnever
where the plugin previously treatednull
asnever
. This results in webhooks triggering builds for DSL-created jobs even where the job is doing actions that aren't valid for a Merge Request in that state (e.g. triggering release builds even though the Merge Request hasn't been merged). This change returns to handling an unspecifiedtriggerOpenMergeRequest
value as being equivalent to specifying it asnever
.Testing done
Automated test to cover failing scenario.
Submitter checklist