Steve Angelo
Steve Angelo

Reputation: 13

How to block the ability to merge the feature branch into the main branch when a Jenkins pipeline failure?

I have a branch "future" , and when the branch does not pass the test, then I need to block the possibility of merging the "feature" branch into the "main" branch. How to do it??

Upvotes: 0

Views: 1534

Answers (1)

Schwern
Schwern

Reputation: 165396

Configure Jenkins to send status checks to Github with the GitHub Checks plugin.

Then in Github protect your branch and disallow merges if any checks have failed. See Require Status Checks Before Merging.

Upvotes: 2

Related Questions