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 :-
02-Aug-2011 16:39:16 | Build TEST-TST-JOB1-6 started building on agent Default Agent |
02-Aug-2011 16:39:16 | Updating source code to the latest revision |
02-Aug-2011 16:39:16 | Updated source code to revision: dummyVcsKey |
02-Aug-2011 16:39:16 | Executing build TEST-TST-JOB1-6 |
02-Aug-2011 16:39:16 | Running pre-build action: Build Number Stamper |
02-Aug-2011 16:39:16 | Running pre-build action: Clover Grails PreBuild Action |
02-Aug-2011 16:39:16 | Running pre-build action: VCS Version Collector |
02-Aug-2011 16:39:16 | Running pre-build action: Repository Isolation Enabler Action |
02-Aug-2011 16:39:16 | Running pre-build action: Maven Settings Prebuild Action |
02-Aug-2011 16:39:16 | Starting task 'Deploy' |
02-Aug-2011 16:39:16 |
Beginning to execute external process for build 'Test - Test - Default Job'
... running command line: C:\Documents and Settings\mahanim\bamboo-home\deploy.bat ... in: C:\Documents and Settings\mahanim\bamboo-home\xml-data\build-dir\TEST-TST-JOB1 |
02-Aug-2011 16:39:16 | |
02-Aug-2011 16:39:16 | C:\Documents and Settings\mahanim\bamboo-home\xml-data\build-dir\TEST-TST-JOB1>ssh weblogic@servername ls -l /opt/bea/user_projects/domains/app/scripts/check_deployment.ksh |
02-Aug-2011 16:39:17 | Could not create directory '/home/SYSTEM/.ssh'. |
Regards
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.