In one task, I need to execute a BASH script like so:
workingDir> ./deploy-webapp.sh -p staging
yet running the build I get:
... running command line:
deploy-webapp.sh -p staging
... in: /opt/clabs/bamboo-home/xml-data/build-dir/ECR-CLP774-JOB1/deploy
... using extra environment variables:
21-Feb-2012 20:13:10 /bin/bash: deploy-webapp.sh -p staging: No such file or directory
trimming Argument field to just "./deploy-webapp.sh" works, but I do need to pass that option. What am I missing?
I am using 3.4.3 build 2811
I could never get this work. I am running Bamboo 220.127.116.11.
Using the example above:
. deploy-webapp.sh -p staging
staging was ignored. If I created an environment variable (e.g. STAGE_NAME=staging) and referenced $STAGE_NAME in the script it worked fine. But I could never get staging to be passed in. I tried passing it using the arguments field - both with and without quotes - but still no joy.
In the end I wrapped the commands I was calling in a python script and it worked as expected. i.e.
python deploy-webapp.py -p staging
...roperties: -Dbamboo.bitbucket.cloud.use.workspace.api=true There are patches available for Bamboo versions 6.8.3, 6.9.2, and 6.10.5 on the bug report that add support for the System Property. T...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events