Skip to content

Add operator to retrieve_branch

Marcel Amirault requested to merge add-operator-branch-for-release-branches into main

This fixes a small problem with releases.

The branch for the GitLab Operator project was not being returned at all when the pipeline runs on stable branches (like 14.10), when we cut releases.

Before (https://gitlab.com/gitlab-org/gitlab-docs/-/jobs/2363203422#L181):

=> Cloning https://gitlab.com/gitlab-org/cloud-native/gitlab-operator.git into ../gitlab-operator
Cloning into '../gitlab-operator'...
warning: Could not find remote branch --single-branch to clone.
fatal: Remote branch --single-branch not found in upstream origin
fatal: cannot change to '../gitlab-operator': No such file or directory
Latest commit: 

After (https://gitlab.com/gitlab-org/gitlab-docs/-/jobs/2363259485#L181):

=> Cloning https://gitlab.com/gitlab-org/cloud-native/gitlab-operator.git into ../gitlab-operator
Cloning into '../gitlab-operator'...
Latest commit: d95bc11 Merge branch '154-openshift-operatorhub' into 'master'
Edited by Achilleas Pipinellis

Merge request reports