waitForQualityGate timeout in Jenkins

I am seeing exactly the same issue where webhooks are being sent before the status of the job is set. The problem is this happens intermittently, which makes even harder to debug.

We are seeing something similar.

This sleep(10) fixed my problem

Thank you. It work

This solved my problem. Thanks