Backport BE changes from CI/CD projects ee!4567
Backport BE changes from CI/CD projects ee!4567

See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4567

stoplightio/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,iiet/iiet-git,jirutka/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,dreampet/gitlab,dreampet/gitlab,axilleas/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq