-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
8ec69c7 introduced a change that does not handle jobs created using Jenkins DSL properly, as DSL jobs that do not specify `triggerOpenMergeRequestOnPush` have the `triggerOpenMergeRequest` value passed into `MergeRequestHookTriggerHandlerFactory` as `null`, with the above change causing the value not to be handled as `never` where the plugin previously treated `null` as `never`. 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 unspecified `triggerOpenMergeRequest` value as being equivalent to specifying it as `never`. Co-authored-by: Kris Stern <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters