I have a bamboo server running on Windows 7. I also have a Virtual Box instance of Ubuntu 12.04 where I would like to automatically start an agent on startup (without logging in). What is the best way of doing this?
Note that if I login as build_meister and start the agent, it works perfectly.
I tried a Startup Applications program with automatic login turned on for user build_meister. The agent is detected by the bamboo server, but dies when it tries to create a disk store (probably because it does not have access to where it wants to create it?)
One thing missing is that I need to automatically enter the password. But your suggestion led me to this:
echo -e "<password>\n" | sudo -S -u build_meister "/usr/local/bin/start_agent.sh"
(note the \n after the password)
... and in /usr/local/bin/start_agent.sh
java -jar /usr/local/bin/atlassian-bamboo-agent-installer-5.5.1.jar http://<ipaddress:port>/agentServer/
Thanks for the idea,
As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot