Hello - I want to define an environment variable in bamboo so that certain tasks are completed during execution. How do I do this through the web interface? bamboo_run script is looking for the value of this variable and I want to set it to true instead of false so that it performs the task from within bamboo.
Hello @Karen West
Welcome to Atlassian Community!
The Inject Bamboo variables task allows you to read the values for variables from a file, and create those variables in your build plan.
The file should use a 'key=value' format. Note that starting from Bamboo version 5.14, you must provide relative paths to the property file.
You can choose if those variables should have a local scope (in which case they cease to exist when the job finishes) or result scope (in which case they are persisted and passed into subsequent stages or related deployment releases).
Then, after the variables are set you can configure a Conditional Task to evaluate the new variable and then proceed with its execution in case it matches.
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--