This is actually a race condition. The checkout url is invalid in my GitLab Server so pipeline fails just soon as the build starts, so the build status is made prior to the pending status. Thus we have 2 different jobs. To avoid this problem we have synchronization in place yet it is failing. I think this shouldn't be the case generally when the checkout url is valid because the pipeline execution will take some time to checkout the repository by that time GitLab Server should have been notified about the pending status. Might open it if issue arises in general cases.