Jenkins integration with gitlab

I’m running a pipeline with docker and script shell, using paramethres to integrate the jenkins with gitlab, for example, each step is notify on the menu gitlab pipeline. The pipeline runs when there is a submit merge request, but some tests (php unity test and sonarqube) are passed both cases (sucess and failure), enabling the button “merge”. I would like the button “merge” was blocked when the php unit test fails.

Can anybody help me? Apologize my english. :sweat_smile: