Create
cancel
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

How to pass flags to a script using script mode with ssh-run?

Edited

How can i pass some flags to a script using script mode with ssh-run?

- step:
name: test script
script:
- pipe: atlassian/ssh-run:0.4.0
variables:
SSH_USER: ...some_users...
SERVER: ...some_ip...
MODE: 'script'
COMMAND: 'test.sh'

 

1 answer

0 votes
Norbert C Atlassian Team Jan 17, 2022

Hi @Emptyfruit 

Thank you for contacting Atlassian Community. My name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet you!

I'd like to inform you that unfortunately it's not possible to pass flags to a script, once you run it in a script mode. In case you wish to run a script and passing a flag, I'd like to recommend you to copy the script to the server and switch to "command" mode instead of "script"

Please let us know if you have any further question?

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Suggest an answer

Log in or Sign up to answer
TAGS
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...

185 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