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

This widget could not be displayed.

Shortly, that's not possible. Still, you can vote for having this implemented https://jira.atlassian.com/browse/BAM-13383

This widget could not be displayed.

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

Armen

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

307 views 1 4
Join discussion

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