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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,498 views 0 5
Read article

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