Skip to content

Raise error if git operations fail when copying MR to canonical

Reuben Pereira requested to merge rp/raise-error-when-git-fails into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Content

Raise error if git operations fail when copying MR to canonical.

  • Raise an error if fetching the security branch fails.
  • Raise an error if pushing the canonical branch fails.
  • Use the ensure_branch_exists method so that the CI job won't fail if the canonical branch already exists. The method checks for an existing branch and creates a new one only if one doesn't already exist. This will allow the CI job to be retried if required.

gitlab-com/gl-infra/delivery#19805 (closed)

Author Check-list

  • Has documentation been updated?
Edited by Reuben Pereira

Merge request reports