I have an SSH task I use after Bamboo deploys Maven .war onto my server, I have used many variations of the following:
sudo nohup service jboss stop &
echo "SLEEPING for 5 seconds during Shutdown of Jboss"
sudo rm -f /usr/share/jboss-as/standalone/deployments/ROOT.war.deployed /usr/share/jboss-as/standalone/deployments/ROOT.war
sudo mv /home/bamboo/ROOT.war /usr/share/jboss-as/standalone/deployments/
sudo nohup service jboss start &
echo "*****SLEEP while JBoss starts: 75 seconds******"
sudo mv /home/bamboo/*.war ../
I have also tried exit = 0,
Everything seems to work okay all the way up to starting the server.
Either does not start jboss server and disconnects succesfully or starts the server and does not disconnect?
Any suggestions about how to make the SSH task disconnect after waiting for Jboss to start?
Thank you for your time and diligence.
I have found a resolution..
I tested that both having a SSH task run a script or putting it in the Script task will not hang bamboo.
/sbin/service jboss restart > /tmp/stderrlogdump 2>&1 &
Apparently dumping stderr releases the terminal from waiting for the process and/or its children to finish.
Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot