Shippable / support

Shippable SaaS customers can report issues and feature requests in this repository
100 stars 28 forks source link

In shippable run a bash script file as part of a job #5186

Closed tkumark closed 3 years ago

tkumark commented 3 years ago

When using a runsh job I would like to run a myscript.sh file the script would be handeling few things related to preping the system before the actual deployment happens. I would rather have runsh job download the script from bitbucket report and execute the bash script. How can we accomplish this?

a-murphy commented 3 years ago

Assuming you don't want to clone the entire repository (in which case you could use a gitRepo input), I would suggest using curl or wget with the file's "raw" URL. On Bitbucket, there's an "open raw" option in the dropdown at the top right corner when viewing the file.