Bamboo remote agent capability

I am bit not clear what all I can do with bamboo remote agent ?

Below are some of the doubts if someone can clarify..

1. Can I use remote agent to execute a script on remote agent itself.

What I am planning to do is extract and build the code on bamboo server but deploy it on different servers using local/remote agent. I was thinking of using the remote agent on the deployment server and run the scripts using remote agent (as it resides on the same server, getting paths and working on it would be easier)

I may be wrong in my understanding, pls if someone could let me know any other way if this is not the correct way of implementing it.

2. I am trying to run a ssh command from windows to connect to a server. I have stored the ssh command in a .bat file and I am trying to run it via a bamboo Script.

.bat file Contents

---------------------------------

ssh weblogic@servername ls -l /opt/bea/user_projects/domains/app/scripts/check_deployment.ksh

---------------------------------

I am getting the below mentioned error :-

Regards

1 answer

0 vote

1. Can I use remote agent to execute a script on remote agent itself.

Yes. Regarding the scenario that you have described: also yes, it can be achieved using shared artifacts/artifact passing.

2.

Your Bamboo server is running as a SYSTEM user and the ssh command is trying to set up a directory structure for itself. Try creating the directory /home/SYSTEM/ and if that does not help, /home/SYSTEM/.ssh . Alternatively, depending on the ssh command that you use, it may have a switch that will let you define a different location for .ssh directory.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

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...

1,783 views 0 6
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you