T
T
TemaKam2021-08-06 11:53:12
GitLab
TemaKam, 2021-08-06 11:53:12

Gitlab-ci: is it possible to specify variables in inherit that should NOT be inherited?

https://docs.gitlab.com/ee/ci/yaml/#inherit
According to the documentation, those variables that need to be inherited in the job / child pipeline are indicated,
but is it possible to specify the other way around - which ones NOT to inherit?
because it is necessary to prohibit the inheritance of a pair of variables, but you have to list all the others that need to be inherited

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2021-08-07
@OnYourLips

To be honest, this approach of non-inheritance smells very bad. And I'm glad he's gone.
But you can use Yaml features: define a common list of variables and add elements there in the original place. This is how it's done: https://blog.daemonl.com/2016/02/yaml.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question