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 votes

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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

158 views 3 5
Join discussion

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