Gitlab commit status is showing as success even after Jenkins build failure

I am using Gitlab 13.4.0.When code is pushed commit status is showing as success but Jenkins build is failed. How to fix this issue. Please advise.