Could not retrieve the pipeline status error - external CI

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

After pipeline succeeds, "Could not retrieve the pipeline status. For troubleshooting steps, read the documentation." appears. Very similar as this issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/41545

Steps to reproduce

  • Open MR
  • Trigger pipeline (which runs on external CI) that ends successfully pushing code changes in the same MR branch
  • Issue appears

Example Project

This is the pipeline triggered:

build:
  dependencies: []
  stage: deploy
  before_script:
    - git config --global user.name ######
    - git config --global user.email ######
  script:
    - bundle exec fastlane ios dev_testflight
    - git push https://#username#:#token#@gitlab.com/#path#.git HEAD:"$CI_COMMIT_REF_NAME"
  tags:
    - ios
  only:
    - merge_requests
  except: 
    variables:
      - $CI_COMMIT_MESSAGE =~ /Version Bump by fastlane/

What is the current bug behavior?

After the pipeline succeeds, the message appears and the protected branch MR cannot be merged.

What is the expected correct behavior?

After the pipeline succeeds, the MR can be merged without any trouble.

Edited by 🤖 GitLab Bot 🤖