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

Pass a paramater to a step definition

I have quite a few repeated steps in multiple branches where only one or two variables are different:

 - step: 
name: Deploy to S3
deployment: staging <- Different
pipe: atlassian/aws-s3-deploy:0.2.4
AWS_DEFAULT_REGION: 'ap-southeast-2'
S3_BUCKET: 'xxx-xxx-staging' <- Different
ACL: 'public-read' LOCAL_PATH: 'build'

Can I define that step as a definition with 2 variables passed as params?

2 answers

Hi @locky !


Did you find any answer? I'm stucked in the same :(

0 votes

Hi @locky ,

good question, thank you!

aws-s3-deploy pipe provides default variables for AWS credentials:

You just needed to setup Repository variables 
Some details provided in the variables section of the README:


(**) = required variable. If this variable is configured as a repository, account or environment variable, it doesn’t need to be declared in the pipe as it will be taken from the context. It can still be overridden when using the pipe.

Other variables should be provided.

so your pipe simplified:

 - step: 
name: Deploy to S3
deployment: staging
pipe: atlassian/aws-s3-deploy:0.2.4
S3_BUCKET: 'xxx-xxx-staging'
ACL: 'public-read' LOCAL_PATH: 'build'




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...

126 views 2 4
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