Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Make a bamboo script task execute #!/bin/bash or /bin/ksh

JulioAmerica May 12, 2017

Good day

Could someone please explain to me how this can be achieve?

We are running:

Bamboo version information
Version5.11.1.1
Build number51117
Build date 4/28/16

and need to run /bin/bash or /bin/ksh in Bamboo script task. I have tried the solution in the other post listed in the site, but did not seem to work. Please help!!!! :( I cant seem to find the link for the action below:

- extracted from https://community.atlassian.com/t5/Bamboo-questions/Making-a-Bamboo-Script-execute-using-bin-bash/qa...

 add a new builder from the builders admin menu {URL}/admin/agent/viewBuilders.action

2 answers

0 votes
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2017

Try something like this

/usr/bin/env ksh <<EOF

echo "Hello, World!"

EOF
0 votes
Sam Hall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2017

Hi Julio, is this a dupllicate of your question from earlier here?:

https://community.atlassian.com/t5/Bamboo-questions/Making-a-Bamboo-Script-execute-using-bin-bash-or-bin-ksh/qaq-p/586627

There's no need to post the same thing as both a question and discussion.

Probably better if people just respond to your original question rather than here. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Bamboo Events