I've setup a remote bamboo agent on another RHEL 7 VM in my organization.
When it runs our build on the remote agent the build itself completes successfully but the agent or bamboo server reports the build failed.
When I run the same build with the default agent (bamboo server) which runs on another RHEL 7 VM the build works and is reported as successful.
I've done some research and looked into the Broker Configuration for Bamboo Server. I changed the remote agent port to 8707 after finding out that our IT security team limits ports to 8000-8999.
Even after the change to 8707 the build is still reported as failed even though it is successful.
I don't know what information to provide other than here is how I run the remote agent on the other box:
java -Dbamboo.home=/data/atlassian/application-data/bamboo -jar atlassian-bamboo-agent-installer-5.15.0.1.jar <removed> start