Relative Content

Tag Archive for gitlabgitlab-ci

How to have access to the predefined variables for merge request pipelines in GitLab?

I’m trying to have access to these predefined variables for merge requests pipelines in GitLab, but apparently my pipeline is set up as basic pipelines, thus having access only to these variables. I basically need only the CI_MERGE_REQUEST_ID var. What do I need to configure (in terms of .gitlab-ci.yml, project, etc) in order to “convert” a basic pipeline into a merge request pipeline in GitLab?

GitLab UI variables not available in grandchild pipeline

I have a CI pipeline in GitLab that triggers a child pipeline that then triggers another child pipeline. Variables that are set in the UI are available in the first child pipeline but not the second (grand)child pipeline. I have looked through the GitLab documentation on all this, I think this is configured correctly. I don’t see anything that should prevent these variables from being seen. All of this is in a single repository.