Search code examples
gitlabgitlab-cito-be-continuous

Install to-be-continuous on a non-root group in a self-managed GitLab?


Starting the Gitlab CI for a project on a self-managed Gitlab, I would like to use the to-be-continuous templates.

So I wanted to follow the dedicated documentation, which requires a public root group to-be-continuous on our Gitlab.

But, for some company purpose, my request for creating this group at the root has been internally refused. As a response, they asked me why the to-be-continuous path isn't variabilized.

How can I workaround this ? Shouldn't it be a good idea to variabilize this path ?

I tried to create a sub_group on Gitlab (non-root) and follow the instructions but giving to the script at https://gitlab.com/to-be-continuous/tools/gitlab-sync/-/raw/master/gitlab-sync.sh the argument DEST_SYNC_PATH.

The project was well imported, but since the templates references are hard coded, any to-be-continuous internal reference is failing.

See the issue on Gitlab


Solution

  • to-be-continuous now supports custom root groups other than to-be-continuous

    See documentation

    Several (but not all) internal includes are now variabilized with the $TBC_NAMESPACE variable (set by the copy/synchronization tool). For still hard-coded refs, you may just ignore the errors as rebuilding the templates in your Self-Managed server is not necessary.