# Pipeline in Gitlab hangs

**URL:** <https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472>\
**Category:** Question & Answer\
**Created:** [January 20, 2021, 10:36pm UTC](https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472 "2021-01-20T22:36:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dipenwell](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dipenwell](https://discuss.bitrise.io/u/dipenwell)\
**Post date:** [January 20, 2021, 10:36pm UTC](https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472/1 "2021-01-20T22:36:12Z")

</div>

Hey guys,  
Trying to trouble shoot which was left by former employee. Any help would be appreciated. We are using gitlabcom. We have two repo android and IOS in gitlab  
MRs to develop branch and MRs to Master branch kicks the build in bitrise with webhook. MRs for andriod for develop and master branch works great and gets the pipeline status. In IOS MRs to develop branch works but MRs to master branch doesn’t get any pipeline status even though build is running. Right way when there is MRs to master the pipline status keep pending and hangs for ever. Whenever I created MR to master with branch name Release it hangs. I did same thing in develop branch with Release name and it hangs but the build kicks in. In andriod repo it works. I looked at the config for both repo and doesn’t make sense to me.  
Is there some sort of rules or something anywhere define if the branch name is this don’t get status?

---

<div class="post-metadata">

**Author:** ![dipenwell](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dipenwell](https://discuss.bitrise.io/u/dipenwell)\
**Post date:** [January 21, 2021, 5:29pm UTC](https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472/2 "2021-01-21T17:29:13Z")

</div>

Well the issue is fixed the error on webhook on git lab was {“error”:“Failed to transform the webhook: The commit specified by ‘checkout\_sha’ was not included in the ‘commits’ array - no match found”}

Once the branch had commit message it worked.

---

<div class="post-metadata">

**Author:** ![dipenwell](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dipenwell](https://discuss.bitrise.io/u/dipenwell)\
**Post date:** [January 25, 2021, 9:23pm UTC](https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472/3 "2021-01-25T21:23:28Z")

</div>

Well what I found is whenever branch is created with commit message and have MR after that it get the status. But a branch without commit message and have MR gitlab doesn’t get pipeline status.  
“error”:“Failed to transform the webhook: The commit specified by ‘checkout\_sha’ was not included in the ‘commits’ array - no match found”}

I don’t know if there is solution to get the status even though branch doesn’t have commit ?

---

<div class="post-metadata">

**Author:** ![dipenwell](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dipenwell](https://discuss.bitrise.io/u/dipenwell)\
**Post date:** [January 27, 2021, 3:30pm UTC](https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472/4 "2021-01-27T15:30:23Z")

</div>

Well this was know issue with bitrise webhook and the issue was resolve by using the gitlab status  
[https://www.bitrise.io/integrations/steps/gitlab-status](https://www.bitrise.io/integrations/steps/gitlab-status). Make sure you turn on expose for pull request for gitlab token in Secrets. We didn’t want to push commit in release branch to just status

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [February 4, 2021, 6:41am UTC](https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472/5 "2021-02-04T06:41:43Z")

</div>

Glad to hear the workaround works @dipenwell! Just a small correction: we would not consider this a known issue and do not see it happen regularly or at all with other git providers or in other scenarios. Sending status from the build with a step using the API call tends to be more reliable though and I do recommend it to everyone running into similar issues.

---

<div class="post-metadata">

**Author:** ![dipenwell](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dipenwell](https://discuss.bitrise.io/u/dipenwell)\
**Post date:** [February 5, 2021, 3:33pm UTC](https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472/6 "2021-02-05T15:33:28Z")

</div>

What would be your steps to get status using webhook if there is MR with a branch with no comment message ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [March 7, 2021, 3:33pm UTC](https://discuss.bitrise.io/t/pipeline-in-gitlab-hangs/15472/7 "2021-03-07T15:33:29Z")

</div>

Closed on March 7, 2021, 3:33pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
