Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I pass in _all_ available variables to a task without needing the arguments field?

Krist Smith June 22, 2023

I find myself needing more and more arguments for build plans as the plans themselves become more complex.  Is it at all possible to just pass in all available variables in as arguments in the bamboo.<argument> format without having to manually put them in the task's arguments field?  I find that requirement leads to me missing the extra step of updating every single plan in a project that has a common repo/script base.

For the record, I'm mostly using the script task type, with Python scripts.  But I also have several NAnt tasks in other build plans.  I tend to set defaults as project variables and plan variables are overrides.  This is to cut down on the plan-by-plan editing required every time there's a new feature added to the build script.

If this isn't currently possible, what I'm hoping for is something similar to the "Dump variables to log" task, except the variables are actually usable in tasks (or, at the very least, allow that task to dump vars to a file instead of the logs).

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events