Exposing the current recipe name as (environmental) variable or via a function #2620
-
|
After reading the documentation and man page and searching issues and discussions for "expose recipe name variable" or "recipe name function", I am not sure if this use case would be supported by just already: When running a recipe, I would like to pass to it the name of the currently selected recipe as a pre-existing variable, alas GitLab's predefined CI/CD variables, either in just or shell notation. That is to template different invocations of a run with its name. This could be a function. These issues seem related:
Would I just have to implement this via a similar shell-based workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
So to be clear, in your example, you're looking for and for I don't think this is currently possible - this would be the As a workaround, you could pass a recipe parameter to |
Beta Was this translation helpful? Give feedback.
So to be clear, in your example, you're looking for
just testto doand for
just liveto doI don't think this is currently possible - this would be the
depending_recipe()function idea proposed in #2411 (comment)As a workaround, you could pass a recipe parameter to
_a: