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

Passing arguments with ssh-run with mode script

We are using the following pipe

- pipe: atlassian/ssh-run:0.2.2
MODE: script

 but we are not able to pass parameters to script that will be run on remote server. Such error will be shown:  no such file or directory: foo bar

Could you support parameters for remote scripts?

2 answers

Is there an answer to this? I'm facing the same issue.

Yes, use the envsubst to replace the variables in your script(in your script with $VARIABLE) per local variables of the pipeline(out a new script with the variables replaced, $VARIABLE => Value).


Official example: 


Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,031 views 0 3
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