Newbie question master-slave setup

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Newbie question master-slave setup

Ramakrishnan, Lakshmanan [Tech]
Hi,
 
I am new to Hudson.
 
I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.
 
I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.
 
In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions
 
  • In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running
  • In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?
 
Thanks in advance
 
Lakshmanan
 
Reply | Threaded
Open this post in threaded view
|

AW: Newbie question master-slave setup

Petriconi, Felix

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

  • In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running
  • In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

Reply | Threaded
Open this post in threaded view
|

RE: Newbie question master-slave setup

Ramakrishnan, Lakshmanan [Tech]

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

Reply | Threaded
Open this post in threaded view
|

Re: Newbie question master-slave setup

Sami Tikka

Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami

"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

Reply | Threaded
Open this post in threaded view
|

RE: Newbie question master-slave setup

Ramakrishnan, Lakshmanan [Tech]

Yes. I had read that before.

 

In the master, I am launching the node using an external command. The command was to launch a batch file which contained the following line

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

 

I reread again and the following line

 

What Hudson expects from your script is that, in the end, it has to execute the slave agent program like java -jar slave.jar, on the right computer, and have its stdin/stdout connect to your script's stdin/stdout”

 

made me change the command to be directly

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

(instead of embedding this in a batch file)

 

Now in the slave , I see the node was started up. In the master’s node console I see

 

Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status

INFO: Connected

http://nds3311768.firmwide.corp.gs.com:7777/hudson/static/a1ab9f08/images/spinner.gif

 

But the node in the master is still ‘offline’ and in the status page in the master it says “This node is being launched.” Am I missing something more?

 

Thanks for the help

 

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 1:01 PM
To: [hidden email]
Subject: Re: Newbie question master-slave setup

 



Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami


"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

Reply | Threaded
Open this post in threaded view
|

RE: Newbie question master-slave setup

Ramakrishnan, Lakshmanan [Tech]

Also to make our life easy, we are testing this master-slave both on windows machine (for the time being)

 

Lakshmanan

 

From: Ramakrishnan, Lakshmanan [Tech]
Sent: Friday, July 16, 2010 5:14 PM
To: '[hidden email]'
Subject: RE: Newbie question master-slave setup

 

Yes. I had read that before.

 

In the master, I am launching the node using an external command. The command was to launch a batch file which contained the following line

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

 

I reread again and the following line

 

What Hudson expects from your script is that, in the end, it has to execute the slave agent program like java -jar slave.jar, on the right computer, and have its stdin/stdout connect to your script's stdin/stdout”

 

made me change the command to be directly

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

(instead of embedding this in a batch file)

 

Now in the slave , I see the node was started up. In the master’s node console I see

 

Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status

INFO: Connected

http://nds3311768.firmwide.corp.gs.com:7777/hudson/static/a1ab9f08/images/spinner.gif

 

But the node in the master is still ‘offline’ and in the status page in the master it says “This node is being launched.” Am I missing something more?

 

Thanks for the help

 

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 1:01 PM
To: [hidden email]
Subject: Re: Newbie question master-slave setup

 

 

Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami


"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

Reply | Threaded
Open this post in threaded view
|

Re: Newbie question master-slave setup

Sami Tikka
In reply to this post by Ramakrishnan, Lakshmanan [Tech]
It seems you have somehow mixed up 2 types of slaves.

You say you are using "launch slave via execution of command on the master" but the command you are using is the one you run on the slave if you use JNLP slaves.

If you change the batch file to run only "java -jar H:\tools\Hudson\slave.jar", your slave should work. (I am assuming commands run from batch files inherit standard input and output from the batch script? Windows is not really my cup of tea...)

You could also not use a batch file at all and just type "java -jar H:\tools\Hudson\slave.jar" into the Hudson slave configuration for Launch command.

If this does not work, I suggest you change the slave type to JNLP and then browse to the slave's status page and press the big orange button to launch the slave using Java Web Start. That seems to be the easiest to get working, especially on Windows, at least that has been my impression.

-- Sami

2010/7/17 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>

Yes. I had read that before.

 

In the master, I am launching the node using an external command. The command was to launch a batch file which contained the following line

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

 

I reread again and the following line

 

What Hudson expects from your script is that, in the end, it has to execute the slave agent program like java -jar slave.jar, on the right computer, and have its stdin/stdout connect to your script's stdin/stdout”

 

made me change the command to be directly

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

(instead of embedding this in a batch file)

 

Now in the slave , I see the node was started up. In the master’s node console I see

 

Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status

INFO: Connected

http://nds3311768.firmwide.corp.gs.com:7777/hudson/static/a1ab9f08/images/spinner.gif

 

But the node in the master is still ‘offline’ and in the status page in the master it says “This node is being launched.” Am I missing something more?

 

Thanks for the help

 

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 1:01 PM

Subject: Re: Newbie question master-slave setup

 



Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami


"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 


Reply | Threaded
Open this post in threaded view
|

Re: Newbie question master-slave setup

Sami Tikka
And I'd like to add that if you really want to use slaves of type "launch slave via execution of command on the master", launching the slave with command like:

"java -jar H:\tools\Hudson\slave.jar"

is going to get you a slave that runs in the same host as the master. Sometimes that is useful, but usually you want the slave to run in another system over the network. I have a few slaves of this type myself and I start them with:

"ssh slavehost java -jar slave.jar"

This is very easy because every Linux and Mac come with ssh client and server pre-installed.

If you want to use the "launch slave via execution of command on the master" type slaves on Windows, you need to find something to replace ssh. That could be difficult. You should explore the other slave types first.

-- Sami

2010/7/17 Sami Tikka <[hidden email]>
It seems you have somehow mixed up 2 types of slaves.

You say you are using "launch slave via execution of command on the master" but the command you are using is the one you run on the slave if you use JNLP slaves.

If you change the batch file to run only "java -jar H:\tools\Hudson\slave.jar", your slave should work. (I am assuming commands run from batch files inherit standard input and output from the batch script? Windows is not really my cup of tea...)

You could also not use a batch file at all and just type "java -jar H:\tools\Hudson\slave.jar" into the Hudson slave configuration for Launch command.

If this does not work, I suggest you change the slave type to JNLP and then browse to the slave's status page and press the big orange button to launch the slave using Java Web Start. That seems to be the easiest to get working, especially on Windows, at least that has been my impression.

-- Sami

2010/7/17 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>

Yes. I had read that before.

 

In the master, I am launching the node using an external command. The command was to launch a batch file which contained the following line

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

 

I reread again and the following line

 

What Hudson expects from your script is that, in the end, it has to execute the slave agent program like java -jar slave.jar, on the right computer, and have its stdin/stdout connect to your script's stdin/stdout”

 

made me change the command to be directly

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

(instead of embedding this in a batch file)

 

Now in the slave , I see the node was started up. In the master’s node console I see

 

Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status

INFO: Connected

http://nds3311768.firmwide.corp.gs.com:7777/hudson/static/a1ab9f08/images/spinner.gif

 

But the node in the master is still ‘offline’ and in the status page in the master it says “This node is being launched.” Am I missing something more?

 

Thanks for the help

 

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 1:01 PM

Subject: Re: Newbie question master-slave setup

 



Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami


"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 



Reply | Threaded
Open this post in threaded view
|

RE: Newbie question master-slave setup

Ramakrishnan, Lakshmanan [Tech]
In reply to this post by Sami Tikka

Thanks Sami for your reply. I can use only jnlp.

 

Using Jnlp, how do I setup master-slave link. I can browse the slave nodes status page and start the node. But in the master, it is still showing as offline. I am sure I am missing something basic. Can you tell me what I am missing?

 

Thanks

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Saturday, July 17, 2010 4:21 PM
To: [hidden email]
Subject: Re: Newbie question master-slave setup

 

It seems you have somehow mixed up 2 types of slaves.

 

You say you are using "launch slave via execution of command on the master" but the command you are using is the one you run on the slave if you use JNLP slaves.

If you change the batch file to run only "java -jar H:\tools\Hudson\slave.jar", your slave should work. (I am assuming commands run from batch files inherit standard input and output from the batch script? Windows is not really my cup of tea...)

You could also not use a batch file at all and just type "java -jar H:\tools\Hudson\slave.jar" into the Hudson slave configuration for Launch command.

If this does not work, I suggest you change the slave type to JNLP and then browse to the slave's status page and press the big orange button to launch the slave using Java Web Start. That seems to be the easiest to get working, especially on Windows, at least that has been my impression.

-- Sami

 

2010/7/17 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>

Yes. I had read that before.

 

In the master, I am launching the node using an external command. The command was to launch a batch file which contained the following line

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

 

I reread again and the following line

 

What Hudson expects from your script is that, in the end, it has to execute the slave agent program like java -jar slave.jar, on the right computer, and have its stdin/stdout connect to your script's stdin/stdout”

 

made me change the command to be directly

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

(instead of embedding this in a batch file)

 

Now in the slave , I see the node was started up. In the master’s node console I see

 

Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status

INFO: Connected

http://nds3311768.firmwide.corp.gs.com:7777/hudson/static/a1ab9f08/images/spinner.gif

 

But the node in the master is still ‘offline’ and in the status page in the master it says “This node is being launched.” Am I missing something more?

 

Thanks for the help

 

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 1:01 PM

Subject: Re: Newbie question master-slave setup

 

 

Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami


"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

 

Reply | Threaded
Open this post in threaded view
|

RE: Newbie question master-slave setup

Ramakrishnan, Lakshmanan [Tech]

Ok. I finally got this working. I had to browse the slave’s status page and launch the jnlp from the master server. If I didn’t do this from the master server, then in master the node was always ‘offline’

 

Thanks for pointing me in the right direction

 

Lakshmanan

 

From: Ramakrishnan, Lakshmanan [Tech]
Sent: Tuesday, July 20, 2010 5:59 PM
To: '[hidden email]'
Subject: RE: Newbie question master-slave setup

 

Thanks Sami for your reply. I can use only jnlp.

 

Using Jnlp, how do I setup master-slave link. I can browse the slave nodes status page and start the node. But in the master, it is still showing as offline. I am sure I am missing something basic. Can you tell me what I am missing?

 

Thanks

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Saturday, July 17, 2010 4:21 PM
To: [hidden email]
Subject: Re: Newbie question master-slave setup

 

It seems you have somehow mixed up 2 types of slaves.

 

You say you are using "launch slave via execution of command on the master" but the command you are using is the one you run on the slave if you use JNLP slaves.

If you change the batch file to run only "java -jar H:\tools\Hudson\slave.jar", your slave should work. (I am assuming commands run from batch files inherit standard input and output from the batch script? Windows is not really my cup of tea...)

You could also not use a batch file at all and just type "java -jar H:\tools\Hudson\slave.jar" into the Hudson slave configuration for Launch command.

If this does not work, I suggest you change the slave type to JNLP and then browse to the slave's status page and press the big orange button to launch the slave using Java Web Start. That seems to be the easiest to get working, especially on Windows, at least that has been my impression.

-- Sami

 

2010/7/17 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>

Yes. I had read that before.

 

In the master, I am launching the node using an external command. The command was to launch a batch file which contained the following line

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

 

I reread again and the following line

 

What Hudson expects from your script is that, in the end, it has to execute the slave agent program like java -jar slave.jar, on the right computer, and have its stdin/stdout connect to your script's stdin/stdout”

 

made me change the command to be directly

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

(instead of embedding this in a batch file)

 

Now in the slave , I see the node was started up. In the master’s node console I see

 

Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status

INFO: Connected

http://nds3311768.firmwide.corp.gs.com:7777/hudson/static/a1ab9f08/images/spinner.gif

 

But the node in the master is still ‘offline’ and in the status page in the master it says “This node is being launched.” Am I missing something more?

 

Thanks for the help

 

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 1:01 PM

Subject: Re: Newbie question master-slave setup

 

 

Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami


"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Newbie question master-slave setup

Sami Tikka
If you are logged on the master server and browse the slave's status page and click the launch the slave button, you got yourself a slave running on the master server. Usually it people want slaves running on some other machine.

You should log on the slave machine. Launch a web browser on the slave and navigate to the slave status page and click the launch the slave button. Now you get yourself a slave running on the slave machine.

You may need to disable firewalls and anti-virus software if the slave is a windows host.

-- Sami

2010/7/21 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>

Ok. I finally got this working. I had to browse the slave’s status page and launch the jnlp from the master server. If I didn’t do this from the master server, then in master the node was always ‘offline’

 

Thanks for pointing me in the right direction

 

Lakshmanan

 

From: Ramakrishnan, Lakshmanan [Tech]
Sent: Tuesday, July 20, 2010 5:59 PM

Subject: RE: Newbie question master-slave setup

 

Thanks Sami for your reply. I can use only jnlp.

 

Using Jnlp, how do I setup master-slave link. I can browse the slave nodes status page and start the node. But in the master, it is still showing as offline. I am sure I am missing something basic. Can you tell me what I am missing?

 

Thanks

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Saturday, July 17, 2010 4:21 PM
To: [hidden email]
Subject: Re: Newbie question master-slave setup

 

It seems you have somehow mixed up 2 types of slaves.

 

You say you are using "launch slave via execution of command on the master" but the command you are using is the one you run on the slave if you use JNLP slaves.

If you change the batch file to run only "java -jar H:\tools\Hudson\slave.jar", your slave should work. (I am assuming commands run from batch files inherit standard input and output from the batch script? Windows is not really my cup of tea...)

You could also not use a batch file at all and just type "java -jar H:\tools\Hudson\slave.jar" into the Hudson slave configuration for Launch command.

If this does not work, I suggest you change the slave type to JNLP and then browse to the slave's status page and press the big orange button to launch the slave using Java Web Start. That seems to be the easiest to get working, especially on Windows, at least that has been my impression.

-- Sami

 

2010/7/17 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>

Yes. I had read that before.

 

In the master, I am launching the node using an external command. The command was to launch a batch file which contained the following line

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

 

I reread again and the following line

 

What Hudson expects from your script is that, in the end, it has to execute the slave agent program like java -jar slave.jar, on the right computer, and have its stdin/stdout connect to your script's stdin/stdout”

 

made me change the command to be directly

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

(instead of embedding this in a batch file)

 

Now in the slave , I see the node was started up. In the master’s node console I see

 

Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status

INFO: Connected

http://nds3311768.firmwide.corp.gs.com:7777/hudson/static/a1ab9f08/images/spinner.gif

 

But the node in the master is still ‘offline’ and in the status page in the master it says “This node is being launched.” Am I missing something more?

 

Thanks for the help

 

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 1:01 PM

Subject: Re: Newbie question master-slave setup

 

 

Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami


"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

 


Reply | Threaded
Open this post in threaded view
|

RE: Newbie question master-slave setup

Ramakrishnan, Lakshmanan [Tech]

When I logon to the slave machine and Launch a web browser on the slave and navigate to the slave status page and click the launch the slave button. The slave node starts up. But in the master the node still says ‘offline’. So what should I do?

 

Thanks

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Wednesday, July 21, 2010 1:44 AM
To: [hidden email]
Subject: Re: Newbie question master-slave setup

 

If you are logged on the master server and browse the slave's status page and click the launch the slave button, you got yourself a slave running on the master server. Usually it people want slaves running on some other machine.

You should log on the slave machine. Launch a web browser on the slave and navigate to the slave status page and click the launch the slave button. Now you get yourself a slave running on the slave machine.

You may need to disable firewalls and anti-virus software if the slave is a windows host.

-- Sami

2010/7/21 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>

Ok. I finally got this working. I had to browse the slave’s status page and launch the jnlp from the master server. If I didn’t do this from the master server, then in master the node was always ‘offline’

 

Thanks for pointing me in the right direction

 

Lakshmanan

 

From: Ramakrishnan, Lakshmanan [Tech]
Sent: Tuesday, July 20, 2010 5:59 PM

Subject: RE: Newbie question master-slave setup

 

Thanks Sami for your reply. I can use only jnlp.

 

Using Jnlp, how do I setup master-slave link. I can browse the slave nodes status page and start the node. But in the master, it is still showing as offline. I am sure I am missing something basic. Can you tell me what I am missing?

 

Thanks

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Saturday, July 17, 2010 4:21 PM
To: [hidden email]
Subject: Re: Newbie question master-slave setup

 

It seems you have somehow mixed up 2 types of slaves.

 

You say you are using "launch slave via execution of command on the master" but the command you are using is the one you run on the slave if you use JNLP slaves.

If you change the batch file to run only "java -jar H:\tools\Hudson\slave.jar", your slave should work. (I am assuming commands run from batch files inherit standard input and output from the batch script? Windows is not really my cup of tea...)

You could also not use a batch file at all and just type "java -jar H:\tools\Hudson\slave.jar" into the Hudson slave configuration for Launch command.

If this does not work, I suggest you change the slave type to JNLP and then browse to the slave's status page and press the big orange button to launch the slave using Java Web Start. That seems to be the easiest to get working, especially on Windows, at least that has been my impression.

-- Sami

 

2010/7/17 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>

Yes. I had read that before.

 

In the master, I am launching the node using an external command. The command was to launch a batch file which contained the following line

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

 

I reread again and the following line

 

What Hudson expects from your script is that, in the end, it has to execute the slave agent program like java -jar slave.jar, on the right computer, and have its stdin/stdout connect to your script's stdin/stdout”

 

made me change the command to be directly

 

java -jar H:\tools\Hudson\slave.jar -jnlpUrl http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp

(instead of embedding this in a batch file)

 

Now in the slave , I see the node was started up. In the master’s node console I see

 

Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status

INFO: Connected

Error! Filename not specified.

 

But the node in the master is still ‘offline’ and in the status page in the master it says “This node is being launched.” Am I missing something more?

 

Thanks for the help

 

Lakshmanan

 

From: Sami Tikka [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 1:01 PM

Subject: Re: Newbie question master-slave setup

 

 

Also, please configure your job to archive build artifacts. This means Hudson will copy the build artifacts to master and store them and make them available for other jobs. Use e.g. Copy artifact plugin to get them for other jobs. 

-- Sami


"Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti 15.7.2010 kello 19.43:

Thanks Felix for the response.

 

Ok. I did do that.

 

But in the master hudson node , how do I refer to the slave?

 

This is what we are trying to achieve.

 

In the master Hudson, we would want to have a project . When you build this project, it starts a build on the slave once the build on the slave is successful, the master will start another build on the master . (we are not sure where to push/pull the artifacts created in the slave machine to the master . In the worst case scenario we can ftp the artifact as part of the build). I am not sure if this kind of distributed master-slave build is possible in Hudson. Can some one shed light on this

 

Thanks

 

From: Petriconi, Felix [mailto:[hidden email]]
Sent: Thursday, July 15, 2010 12:36 PM
To: [hidden email]
Subject: AW: Newbie question master-slave setup

 

Lakshmanan,

 

you have to do the configuration and setup of each slaves in the browser of each slave. I stumbled over the same trap.

 

Then you have inside the projects/job the possibility to assign a project on a dedicated slave as soon as you have a slave successfully configured.

 

I hope this helped?

 

Regards, Felix

 

Felix Petriconi
Software Development Manager

MeVis BreastCare Solutions GmbH & Co. KG
A MeVis Medical Solutions company

Universitaetsallee 29
28359 Bremen
Germany
Phone: +49 (0)421 33074-(9)20
Fax:      +49 (0)421 33074-50

E-mail:
[hidden email]
Website: www.mevis.de

Trade Registry: Bremen HRA 25204 HB
VAT ID: DE262661277

Executive Board:
Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
MeVis BreastCare Solutions Verwaltungs-GmbH


Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
Gesendet: Donnerstag, 15. Juli 2010 18:29
An: '[hidden email]'
Betreff: Newbie question master-slave setup
Wichtigkeit: Hoch

 

Hi,

 

I am new to Hudson.

 

I am trying to setup a master-slave configuration. Master Hudson runs on a linux  host and the slave is on a windows host.

 

I create a master node in the linux machine. In the slave machine as well I am running the tomcat with Hudson and created a slave agent and configured it to be started with jnlp.

 

In the master, I am not sure how to configure to connect to this slave to start a build. I have gone through enough documentation and every one is telling it is easy.  But I am not sure what am I missing, I cannot add this slave node in the master. I have following questions

 

·         In the master machine, do you need to add the slave node. If yes how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and ‘copy existing node’). When I try to add a dumb slave, I am not sure how to give the ip address/hostname where the slave is running

·         In the master machine, I have a build project that I need to run on the windows slave. How do I configure this slave build?

 

Thanks in advance

 

Lakshmanan

 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Newbie question master-slave setup

Sami Tikka
First, have you set the Hudson URL in Manage Hudson -> System
Configuration under Email notification? Even though the setting sits
under the title "Email notification", Hudson uses the URL in there
when it constructs some URLs. I remember having trouble with JNLP
slaves with one Hudson installation that had "http://localhost:8080"
in Hudson URL field.

Next, try to disable firewalls and anti-virus software on the slave host.

Next, go to the slave status page and copy the command line to use for
headless slave and paste it to a command prompt window on the slave.
It might be possible the slave prints an error that gives us a hint on
what is wrong.

-- Sami

2010/7/21 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>:

> When I logon to the slave machine and Launch a web browser on the slave and
> navigate to the slave status page and click the launch the slave button. The
> slave node starts up. But in the master the node still says ‘offline’. So
> what should I do?
>
>
>
> Thanks
>
> Lakshmanan
>
>
>
> From: Sami Tikka [mailto:[hidden email]]
> Sent: Wednesday, July 21, 2010 1:44 AM
> To: [hidden email]
> Subject: Re: Newbie question master-slave setup
>
>
>
> If you are logged on the master server and browse the slave's status page
> and click the launch the slave button, you got yourself a slave running on
> the master server. Usually it people want slaves running on some other
> machine.
>
> You should log on the slave machine. Launch a web browser on the slave and
> navigate to the slave status page and click the launch the slave button. Now
> you get yourself a slave running on the slave machine.
>
> You may need to disable firewalls and anti-virus software if the slave is a
> windows host.
>
> -- Sami
>
> 2010/7/21 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>
>
> Ok. I finally got this working. I had to browse the slave’s status page and
> launch the jnlp from the master server. If I didn’t do this from the master
> server, then in master the node was always ‘offline’
>
>
>
> Thanks for pointing me in the right direction
>
>
>
> Lakshmanan
>
>
>
> From: Ramakrishnan, Lakshmanan [Tech]
> Sent: Tuesday, July 20, 2010 5:59 PM
>
> To: '[hidden email]'
>
> Subject: RE: Newbie question master-slave setup
>
>
>
> Thanks Sami for your reply. I can use only jnlp.
>
>
>
> Using Jnlp, how do I setup master-slave link. I can browse the slave nodes
> status page and start the node. But in the master, it is still showing as
> offline. I am sure I am missing something basic. Can you tell me what I am
> missing?
>
>
>
> Thanks
>
> Lakshmanan
>
>
>
> From: Sami Tikka [mailto:[hidden email]]
> Sent: Saturday, July 17, 2010 4:21 PM
> To: [hidden email]
> Subject: Re: Newbie question master-slave setup
>
>
>
> It seems you have somehow mixed up 2 types of slaves.
>
>
>
> You say you are using "launch slave via execution of command on the master"
> but the command you are using is the one you run on the slave if you use
> JNLP slaves.
>
> If you change the batch file to run only "java -jar
> H:\tools\Hudson\slave.jar", your slave should work. (I am assuming commands
> run from batch files inherit standard input and output from the batch
> script? Windows is not really my cup of tea...)
>
> You could also not use a batch file at all and just type "java -jar
> H:\tools\Hudson\slave.jar" into the Hudson slave configuration for Launch
> command.
>
> If this does not work, I suggest you change the slave type to JNLP and then
> browse to the slave's status page and press the big orange button to launch
> the slave using Java Web Start. That seems to be the easiest to get working,
> especially on Windows, at least that has been my impression.
>
> -- Sami
>
>
>
> 2010/7/17 Ramakrishnan, Lakshmanan [Tech] <[hidden email]>
>
> Yes. I had read that before.
>
>
>
> In the master, I am launching the node using an external command. The
> command was to launch a batch file which contained the following line
>
>
>
> java -jar H:\tools\Hudson\slave.jar -jnlpUrl
> http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp
>
>
>
> I reread again and the following line
>
>
>
> “What Hudson expects from your script is that, in the end, it has to execute
> the slave agent program like java -jar slave.jar, on the right computer, and
> have its stdin/stdout connect to your script's stdin/stdout”
>
>
>
> made me change the command to be directly
>
>
>
> java -jar H:\tools\Hudson\slave.jar -jnlpUrl
> http://xyz.company.com:7777/hudson/computer/cmbuild/slave-agent.jnlp
>
> (instead of embedding this in a batch file)
>
>
>
> Now in the slave , I see the node was started up. In the master’s node
> console I see
>
>
>
> Jul 16, 2010 10:26:28 AM hudson.remoting.jnlp.Main$CuiListener status
>
> INFO: Connected
>
> Error! Filename not specified.
>
>
>
> But the node in the master is still ‘offline’ and in the status page in the
> master it says “This node is being launched.” Am I missing something more?
>
>
>
> Thanks for the help
>
>
>
> Lakshmanan
>
>
>
> From: Sami Tikka [mailto:[hidden email]]
> Sent: Thursday, July 15, 2010 1:01 PM
>
> To: [hidden email]
>
> Subject: Re: Newbie question master-slave setup
>
>
>
> Did you already
> read http://wiki.hudson-ci.org/display/HUDSON/Distributed+builds
>
>
>
> Also, please configure your job to archive build artifacts. This means
> Hudson will copy the build artifacts to master and store them and make them
> available for other jobs. Use e.g. Copy artifact plugin to get them for
> other jobs.
>
> -- Sami
>
> "Ramakrishnan, Lakshmanan [Tech]" <[hidden email]> kirjoitti
> 15.7.2010 kello 19.43:
>
> Thanks Felix for the response.
>
>
>
> Ok. I did do that.
>
>
>
> But in the master hudson node , how do I refer to the slave?
>
>
>
> This is what we are trying to achieve.
>
>
>
> In the master Hudson, we would want to have a project . When you build this
> project, it starts a build on the slave once the build on the slave is
> successful, the master will start another build on the master . (we are not
> sure where to push/pull the artifacts created in the slave machine to the
> master . In the worst case scenario we can ftp the artifact as part of the
> build). I am not sure if this kind of distributed master-slave build is
> possible in Hudson. Can some one shed light on this
>
>
>
> Thanks
>
>
>
> From: Petriconi, Felix [mailto:[hidden email]]
> Sent: Thursday, July 15, 2010 12:36 PM
> To: [hidden email]
> Subject: AW: Newbie question master-slave setup
>
>
>
> Lakshmanan,
>
>
>
> you have to do the configuration and setup of each slaves in the browser of
> each slave. I stumbled over the same trap.
>
>
>
> Then you have inside the projects/job the possibility to assign a project on
> a dedicated slave as soon as you have a slave successfully configured.
>
>
>
> I hope this helped?
>
>
>
> Regards, Felix
>
>
>
> Felix Petriconi
> Software Development Manager
>
> MeVis BreastCare Solutions GmbH & Co. KG
> A MeVis Medical Solutions company
>
> Universitaetsallee 29
> 28359 Bremen
> Germany
> Phone: +49 (0)421 33074-(9)20
> Fax:      +49 (0)421 33074-50
>
> E-mail: [hidden email]
> Website: www.mevis.de
>
> Trade Registry: Bremen HRA 25204 HB
> VAT ID: DE262661277
>
> Executive Board:
> Carl J.G. Evertsz, Ph.D., Christian H. Seefeldt
> MeVis BreastCare Solutions Verwaltungs-GmbH
>
> ________________________________
>
> Von: Ramakrishnan, Lakshmanan [Tech] [mailto:[hidden email]]
> Gesendet: Donnerstag, 15. Juli 2010 18:29
> An: '[hidden email]'
> Betreff: Newbie question master-slave setup
> Wichtigkeit: Hoch
>
>
>
> Hi,
>
>
>
> I am new to Hudson.
>
>
>
> I am trying to setup a master-slave configuration. Master Hudson runs on a
> linux  host and the slave is on a windows host.
>
>
>
> I create a master node in the linux machine. In the slave machine as well I
> am running the tomcat with Hudson and created a slave agent and configured
> it to be started with jnlp.
>
>
>
> In the master, I am not sure how to configure to connect to this slave to
> start a build. I have gone through enough documentation and every one is
> telling it is easy.  But I am not sure what am I missing, I cannot add this
> slave node in the master. I have following questions
>
>
>
> ·         In the master machine, do you need to add the slave node. If yes
> how? When I try to add a new node, I see only 2 options (‘Dumb slave’ and
> ‘copy existing node’). When I try to add a dumb slave, I am not sure how to
> give the ip address/hostname where the slave is running
>
> ·         In the master machine, I have a build project that I need to run
> on the windows slave. How do I configure this slave build?
>
>
>
> Thanks in advance
>
>
>
> Lakshmanan
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]