Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can the value of a Deployment variable be an array?

Moises García
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 13, 2024

How can I pass and array of IPs from a Deployment variable to a script in a step?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 16, 2024

Hi Moises,

Dynamic variables in the way you've described are unfortunately not yet supported in pipelines. We have a feature request raised with our developers, however, that you may Watch to receive future updates and Vote for to improve its visibility with regard to customer demand:

You could write a shell script to assign an array of values to an environment variable, however, for example:

  • F="a b c"

    for i in ${F}

    do

    echo $i

    done 

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events