How to configure Bamboo to run an inline script with cygwin bash on Windows?

On Jenkins I had a script that was configured to run with bash (via cygwin) on Windows but when imported to Bamboo, I discovered that Bamboo is running the same inline script with cmd and that it does not supports any shebang when writing the script.

How do I tell bamboo to run this script under bash?

Note: I don't want to checking this script into the repository, so the option to execute a file is not an option. I want to be able to edit this script from the build system interface (inline script).

2 answers

1 accepted

1 vote
Accepted answer

Shortly, that's not possible. Still, you can vote for having this implemented

Hey Sorin,

You can use the Command task and specify the relative path of your script file in the Argument field (instead of the Script task).The path is relative to the current working directory of that plan (something like: BambooHome/xml-data/build-dir/PROJ1-PLAN1-JOB1).


Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Dec 06, 2018 in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,690 views 22 17
View question

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you