docs: add note regarding CI_DEFAULT_BRANCH settings of gitlab-ci-local

Gabriel Ferreira 2023-12-22 14:43:12 +01:00
parent 4dc8f09b14
commit c5224d8abc
1 changed files with 12 additions and 0 deletions

View File

@ -167,3 +167,15 @@ Artifacts built by the CI jobs will be stored in separate subfolders
based on the job name.
``~/ns-3-dev/.gitlab-ci-local/artifacts/jobname``
Note: some jobs may access the ``CI_DEFAULT_BRANCH`` environment variable,
which is set by default to ``main`` instead of ``master``. To change that, we need
to create a file ``~/.gitlab-ci-local/variables.yml`` containing the following:
.. sourcecode:: YAML
global:
CI_DEFAULT_BRANCH: "master"
In case you are using Docker with root, you need to create this file in
``/root/.gitlab-ci-local/variables.yml``.