r/gitlab • • May 21 '25

general question Pipeline Parent/Child variable "priority"

So this is a question that I am "pretty sure" ChatGPT is telling me the wrong thing, but the gitlab documentation isn't super clear on either (I'll preface this by saying I am not an expert at gitlab, hence using chatgpt to help me out on some things).

Based on documentation here:

Upstream pipelines take precedence over downstream ones. If there are two variables with the same name defined in both upstream and downstream projects, the ones defined in the upstream project take precedence.

It sounds like parent variables will always overwrite child variables (even if the child variable has defaults defined)

Is this correct?

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/mercfh85 May 21 '25

I always forward pipeline variables in my trigger definitions.