I am trying to set up several slaves as windows services on one machine and then...
I am trying to set up several slaves as windows services on one machine and then connecting them to a master on another windows server, and am getting nowhere with this. I can not find any documentation anywhere on what the process would be to do this. I have configured and added slaves on the same machine as my master, but that's obviously not what I want. Any help please?
I'm probably too late for you, but maybe this will be helpful for other people w...
I'm probably too late for you, but maybe this will be helpful for other people who come here.
Here is what has worked for me for most of my build projects.
Log onto the machine that you want to set up as a slave. Connect to your server (http://servername:8080, replacing servername with the actual name of the server) and click on Manage Hudson. Click on Manage Nodes and then click on New Node. Give it a name and choose Dumb Slave and click OK (for future slaves you can just copy from existing). Fill in the fields, leaving settings at their defaults, and click Save.
Now that it is created, you can click on it in the list of nodes. It should show a page that tells you how to launch the slave. Since you are already on the slave machine, you just need to click the Launch button. It will start up the slave under Java and will say it is connected if it all went well.
Then you simply click on the File menu in that java window and choose Install as a Windows Service. It should then set up the service and shut down the slave agent you had just launched. From there, you don't really have much to do besides send builds to it.
Like I said, this has worked for me with most of my build configurations, so I guess this could be considered the basic setup. In some cases, there is more that needs to be done but I am still fumbling through those situations and have nothing positive to report yet.
Can I create slaves of different OSes. like I am working on a project which is p...
Can I create slaves of different OSes. like I am working on a project which is ported to windows/linux/mac. I have setup separate Hudson CIs for the same. I was thinking If I can merge them into a single hudson.
jobs particular to any OS should be given to that os's slave.
I have found no documentation which can explain me Master/Slave Hudson properly.
If this is not available / implemented currently with hudson.. this is one of the cool thing which would help lot of people who are developing cross-platform apps.
You can certainly create slaves on different o/s's. We have our Hudson master on...
You can certainly create slaves on different o/s's. We have our Hudson master on Windows and we have Hudson slaves on Windows and Linux. Having set-up the slaves, you can assign them to a job by specifying their label in the 'Restrict where this project can be run' field of the project. So what you want is already possible.
I would suggest you post your questions to Hudson user's mail list.
I setup one Windows slave for one Windows master, they are two physical machines...
I setup one Windows slave for one Windows master, they are two physical machines. The "Remote FS root" is set to "E:\hudson". I want to create one job named TEST to run a bat script aaa.bat on the slave. The content of aaa.bat is:
cd F:\project
call bbb.bat
The bbb.bat is in F:\project. But when I run the job, hudson try to find and run the bbb.bat in E:\hudson\TEST. The "cd F:\project" is not used. If I added "echo %cd%" after "cd F:\project" to print the current directory, it prints something like "E:\hudson\TEST". Can anybody tell me how to resolve this? I want the "cd" command takes effect. Thanks.
Comments (7)
Nov 18, 2009
David Aldrich says:
Looking forward to this page being available. I am just getting started with a m...Looking forward to this page being available. I am just getting started with a master/slave configuration and know nothing!
Dec 04, 2009
Martin Thomas says:
Waiting for this page to come and still looking for clues about the master/slave...Waiting for this page to come and still looking for clues about the master/slave configuration.
Jan 28, 2010
Alex Lombardi says:
I am trying to set up several slaves as windows services on one machine and then...I am trying to set up several slaves as windows services on one machine and then connecting them to a master on another windows server, and am getting nowhere with this. I can not find any documentation anywhere on what the process would be to do this. I have configured and added slaves on the same machine as my master, but that's obviously not what I want. Any help please?
Feb 22, 2010
Joshua Darling says:
I'm probably too late for you, but maybe this will be helpful for other people w...I'm probably too late for you, but maybe this will be helpful for other people who come here.
Here is what has worked for me for most of my build projects.
Log onto the machine that you want to set up as a slave. Connect to your server (http://servername:8080, replacing servername with the actual name of the server) and click on Manage Hudson. Click on Manage Nodes and then click on New Node. Give it a name and choose Dumb Slave and click OK (for future slaves you can just copy from existing). Fill in the fields, leaving settings at their defaults, and click Save.
Now that it is created, you can click on it in the list of nodes. It should show a page that tells you how to launch the slave. Since you are already on the slave machine, you just need to click the Launch button. It will start up the slave under Java and will say it is connected if it all went well.
Then you simply click on the File menu in that java window and choose Install as a Windows Service. It should then set up the service and shut down the slave agent you had just launched. From there, you don't really have much to do besides send builds to it.
Like I said, this has worked for me with most of my build configurations, so I guess this could be considered the basic setup. In some cases, there is more that needs to be done but I am still fumbling through those situations and have nothing positive to report yet.
Sep 07, 2010
Mital Vora says:
Can I create slaves of different OSes. like I am working on a project which is p...Can I create slaves of different OSes. like I am working on a project which is ported to windows/linux/mac. I have setup separate Hudson CIs for the same. I was thinking If I can merge them into a single hudson.
jobs particular to any OS should be given to that os's slave.
I have found no documentation which can explain me Master/Slave Hudson properly.
If this is not available / implemented currently with hudson.. this is one of the cool thing which would help lot of people who are developing cross-platform apps.
Thanks :)
Sep 14, 2010
David Aldrich says:
You can certainly create slaves on different o/s's. We have our Hudson master on...You can certainly create slaves on different o/s's. We have our Hudson master on Windows and we have Hudson slaves on Windows and Linux. Having set-up the slaves, you can assign them to a job by specifying their label in the 'Restrict where this project can be run' field of the project. So what you want is already possible.
I would suggest you post your questions to Hudson user's mail list.
David
May 13, 2011
Yang Chen says:
I setup one Windows slave for one Windows master, they are two physical machines...I setup one Windows slave for one Windows master, they are two physical machines. The "Remote FS root" is set to "E:\hudson". I want to create one job named TEST to run a bat script aaa.bat on the slave. The content of aaa.bat is:
cd F:\project
call bbb.bat
The bbb.bat is in F:\project. But when I run the job, hudson try to find and run the bbb.bat in E:\hudson\TEST. The "cd F:\project" is not used. If I added "echo %cd%" after "cd F:\project" to print the current directory, it prints something like "E:\hudson\TEST". Can anybody tell me how to resolve this? I want the "cd" command takes effect. Thanks.