Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Set variable value at runtime

For my deployment I would like to be able to set the container tag at runtime. For example. 

I have 2 containers:




I have a manually triggered deployment step.  I would like to be able to do something like this in my code:

- helm install ${container_name}_chart --version=${container-version} --set cotainer_tag=${container_version}

Where container_name and container_version are set by the user at runtime. 


At runtime the user can enter (or even better, if possible select from a list) the container/app name and version.


Is this possible?


1 answer

1 accepted

0 votes
Answer accepted

Hi @Eytan Yammer,

It is possible to set variable values at runtime but only for custom builds and for variables defined in these builds.

You can see an example in the following doc, if you search for the keyword 'variables':

Since this step is manually triggered anyway, you can define it as a custom pipeline instead, and define container_name and container_version as variables in that custom pipeline. I'm afraid it is not possible to select values from a list, the user running the step will need to provide the values for these variables.

It is also possible to use the 'deployment' keyword for this step in a custom pipeline if you are making use of deployment environments in Pipelines.

Is this something that works for you?

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

224 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you