Re: Can i run master and slave on same machine

2018-08-06 Thread Mark Waite
Refer to
https://wiki.jenkins.io/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines+on+Windows
 or https://stackoverflow.com/questions/24962504/adding-a-slave-to-jenkins
or
http://scmquest.com/jenkins-master-slave-setup-and-configuration-with-screenshots/
 or
http://scmquest.com/jenkins-windows-slave-configuration-with-screenshots/ .

If those don't solve the issue you're seeing, you'll need to provide more
details about the error "file available", including the steps you took with
precede that error and the alternatives you've tried to resolve the error.

Mark Waite

On Sun, Aug 5, 2018 at 10:42 PM Nehal Abdelhafez 
wrote:

>
> can you just tell me how i can run master and slave on the same machine i
> have install and run a master and i cant make the slave join it gives error
> "file avaliable " thanks in advance
>
> On Wednesday, June 27, 2012 at 4:26:03 PM UTC+2, Mark Waite wrote:
>>
>> The simplest answer to your "Can I run master and slave on the same
>> machine" is "Yes".  The challenging part of the question is "Why?"
>>
>> The subject line seems to hint that you are considering running a master
>> and a slave on the same machine.  It certainly can be done.  Whether it
>> should be done depends on your reason for wanting to use a slave.
>>
>> The Jenkins master can run multiple jobs in parallel so long as you allow
>> have enough executors defined on the master node to host your parallel
>> jobs.  If the master machine has enough compute power to perform all the
>> parallel jobs, then executing all the jobs on the master node is simpler
>> because it is easier to administer one machine (the master) than two
>> machines (the master and the slave).
>>
>> If the master machine does not have enough compute power to perform all
>> the parallel jobs, then additional computers can be added as slave nodes to
>> add compute power.
>>
>> Another use of master and slave is when different configurations are
>> needed.  For example, I have a master node that is 64 bit Linux and slave
>> nodes for 32 bit Linux, 32 bit Windows, and 64 bit Windows.  I couldn't run
>> that configuration without master and slave setups.
>>
>> I believe others have used a slave configuration to create a separate
>> configuration even on the same machine.  That is not a technique I've used,
>> but I've considered it, possibly using a slave running in a chroot
>> environment on a Linux machine to simulate a different configuration
>> without actually running on a different machine.
>>
>> It is also possible to run a master and a slave on the same machine
>> simply by configuring the slave node to use a different home directory than
>> the master node.  I'm not sure why you would do that, but it can be done.
>>
>> Mark Waite
>>
>>
>>
>> --
>> *From:* Varghese Renny 
>> *To:* jenkins...@googlegroups.com
>> *Sent:* Tuesday, June 26, 2012 8:53 PM
>> *Subject:* Can i run master and slave on same machine
>>
>>
>> I have a doubt regarding, if multipe jobs are there ,is it better to
>> distribute build on slave or
>> do it on master itself?
>> if i can do master and slave? how can i implement this?
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/0d3efd72-eed1-4a0f-8827-21b498374822%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtESu5_rURAKYfKF8208WfcHpYnX-N15%2Bxjt7CD78-qc1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can i run master and slave on same machine

2018-08-06 Thread Amit Ghatwal
I have set up a single machine to run as jenkins- master+slave successfully 
many a times , been able to deploy jobs successfully as well  on the 
machine at "Remote root directory" for the added slave node .Every job 
deployed creates a folder with the job name .  Can you elaborate more on 
where exactly ur getting this message - 'file available" , any launch 
methods which is giving this message - JNLP, SSH , webstart, etc. ?


On Monday, 6 August 2018 10:12:55 UTC+5:30, Nehal Abdelhafez wrote:
>
>
> can you just tell me how i can run master and slave on the same machine i 
> have install and run a master and i cant make the slave join it gives error 
> "file avaliable " thanks in advance 
>
> On Wednesday, June 27, 2012 at 4:26:03 PM UTC+2, Mark Waite wrote:
>>
>> The simplest answer to your "Can I run master and slave on the same 
>> machine" is "Yes".  The challenging part of the question is "Why?"
>>
>> The subject line seems to hint that you are considering running a master 
>> and a slave on the same machine.  It certainly can be done.  Whether it 
>> should be done depends on your reason for wanting to use a slave.
>>
>> The Jenkins master can run multiple jobs in parallel so long as you allow 
>> have enough executors defined on the master node to host your parallel 
>> jobs.  If the master machine has enough compute power to perform all the 
>> parallel jobs, then executing all the jobs on the master node is simpler 
>> because it is easier to administer one machine (the master) than two 
>> machines (the master and the slave).
>>
>> If the master machine does not have enough compute power to perform all 
>> the parallel jobs, then additional computers can be added as slave nodes to 
>> add compute power.
>>
>> Another use of master and slave is when different configurations are 
>> needed.  For example, I have a master node that is 64 bit Linux and slave 
>> nodes for 32 bit Linux, 32 bit Windows, and 64 bit Windows.  I couldn't run 
>> that configuration without master and slave setups.
>>
>> I believe others have used a slave configuration to create a separate 
>> configuration even on the same machine.  That is not a technique I've used, 
>> but I've considered it, possibly using a slave running in a chroot 
>> environment on a Linux machine to simulate a different configuration 
>> without actually running on a different machine.
>>
>> It is also possible to run a master and a slave on the same machine 
>> simply by configuring the slave node to use a different home directory than 
>> the master node.  I'm not sure why you would do that, but it can be done.
>>
>> Mark Waite
>>
>>
>>
>> --
>> *From:* Varghese Renny 
>> *To:* jenkins...@googlegroups.com 
>> *Sent:* Tuesday, June 26, 2012 8:53 PM
>> *Subject:* Can i run master and slave on same machine
>>
>>
>> I have a doubt regarding, if multipe jobs are there ,is it better to 
>> distribute build on slave or
>> do it on master itself?
>> if i can do master and slave? how can i implement this?
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20047d71-6c2a-4913-b518-c494ab32de0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can i run master and slave on same machine

2018-08-05 Thread Nehal Abdelhafez

can you just tell me how i can run master and slave on the same machine i 
have install and run a master and i cant make the slave join it gives error 
"file avaliable " thanks in advance 

On Wednesday, June 27, 2012 at 4:26:03 PM UTC+2, Mark Waite wrote:
>
> The simplest answer to your "Can I run master and slave on the same 
> machine" is "Yes".  The challenging part of the question is "Why?"
>
> The subject line seems to hint that you are considering running a master 
> and a slave on the same machine.  It certainly can be done.  Whether it 
> should be done depends on your reason for wanting to use a slave.
>
> The Jenkins master can run multiple jobs in parallel so long as you allow 
> have enough executors defined on the master node to host your parallel 
> jobs.  If the master machine has enough compute power to perform all the 
> parallel jobs, then executing all the jobs on the master node is simpler 
> because it is easier to administer one machine (the master) than two 
> machines (the master and the slave).
>
> If the master machine does not have enough compute power to perform all 
> the parallel jobs, then additional computers can be added as slave nodes to 
> add compute power.
>
> Another use of master and slave is when different configurations are 
> needed.  For example, I have a master node that is 64 bit Linux and slave 
> nodes for 32 bit Linux, 32 bit Windows, and 64 bit Windows.  I couldn't run 
> that configuration without master and slave setups.
>
> I believe others have used a slave configuration to create a separate 
> configuration even on the same machine.  That is not a technique I've used, 
> but I've considered it, possibly using a slave running in a chroot 
> environment on a Linux machine to simulate a different configuration 
> without actually running on a different machine.
>
> It is also possible to run a master and a slave on the same machine simply 
> by configuring the slave node to use a different home directory than the 
> master node.  I'm not sure why you would do that, but it can be done.
>
> Mark Waite
>
>
>
> --
> *From:* Varghese Renny >
> *To:* jenkins...@googlegroups.com  
> *Sent:* Tuesday, June 26, 2012 8:53 PM
> *Subject:* Can i run master and slave on same machine
>
>
> I have a doubt regarding, if multipe jobs are there ,is it better to 
> distribute build on slave or
> do it on master itself?
> if i can do master and slave? how can i implement this?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0d3efd72-eed1-4a0f-8827-21b498374822%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can i run master and slave on same machine

2017-09-26 Thread Mark Waite
On Tue, Sep 26, 2017 at 9:38 AM Huzz Sto  wrote:

> can Jenkins master and slave run on different network. or they both have
> to be on the same network.
>
>
So long as master and agent can communicate, they can run on separate
networks.

Mark Waite


> On Tuesday, June 26, 2012 at 10:53:33 PM UTC-4, Varghese Renny wrote:
>>
>>
>> I have a doubt regarding, if multipe jobs are there ,is it better to
>> distribute build on slave or
>> do it on master itself?
>> if i can do master and slave? how can i implement this?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/96487999-807f-46da-b466-9a0a762166ff%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHrDhJOXH1Jr1PDF3qSk%2B0L%3DZw_Xp%3DK88r2-ZnQKb8xOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can i run master and slave on same machine

2017-09-26 Thread Huzz Sto
can Jenkins master and slave run on different network. or they both have to 
be on the same network.

On Tuesday, June 26, 2012 at 10:53:33 PM UTC-4, Varghese Renny wrote:
>
>
> I have a doubt regarding, if multipe jobs are there ,is it better to 
> distribute build on slave or
> do it on master itself?
> if i can do master and slave? how can i implement this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/96487999-807f-46da-b466-9a0a762166ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can i run master and slave on same machine

2012-06-28 Thread Varghese Renny

For running slave, first i need to setup jenkins instance on slave machine. 
After installing jenkins on slave machine
then slave will automatically act as master right?
Is there any UI for slave machine? or we are just using machine power?
Can anyone suggest some url regarding this ?

What makes jenkins UI seperate from Slave jenkins UI?

PLEASE REPLY..
THANKS IN ADVANCE







Re: Can i run master and slave on same machine

2012-06-27 Thread Mark Waite
The simplest answer to your Can I run master and slave on the same machine is 
Yes.  The challenging part of the question is Why?

The subject line seems to hint that you are considering running a master and a 
slave on the same machine.  It certainly can be done.  Whether it should be 
done depends on your reason for wanting to use a slave.

The Jenkins master can run multiple jobs in parallel so long as you allow have 
enough executors defined on the master node to host your parallel jobs.  If the 
master machine has enough compute power to perform all the parallel jobs, then 
executing all the jobs on the master node is simpler because it is easier to 
administer one machine (the master) than two machines (the master and the 
slave).

If the master machine does not have enough compute power to perform all the 
parallel jobs, then additional computers can be added as slave nodes to add 
compute power.

Another use of master and slave is when different configurations are needed.  
For example, I have a master node that is 64 bit Linux and slave nodes for 32 
bit Linux, 32 bit Windows, and 64 bit Windows.  I couldn't run that 
configuration without master and slave setups.

I believe others have used a slave configuration to create a separate 
configuration even on the same machine.  That is not a technique I've used, but 
I've considered it, possibly using a slave running in a chroot environment on a 
Linux machine to simulate a different configuration without actually running on 
a different machine.

It is also possible to run a master and a slave on the same machine simply by 
configuring the slave node to use a different home directory than the master 
node.  I'm not sure why you would do that, but it can be done.

Mark Waite






 From: Varghese Renny varghesekre...@gmail.com
To: jenkinsci-users@googlegroups.com 
Sent: Tuesday, June 26, 2012 8:53 PM
Subject: Can i run master and slave on same machine
 


I have a doubt regarding, if multipe jobs are there ,is it better to 
distribute build on slave or
do it on master itself?
if i can do master and slave? how can i implement this?




Re: Can i run master and slave on same machine

2012-06-27 Thread Varghese Renny
i have only 5 projects to run.But i run all this project on tomcat server
using jenkins. 5 project means 5 web applications which are accessing five
different database.So five jenkin job on one tomcat server and i need five
other tomcat instance for five application to make up. Since while build is
running i have to stop these five tomcat.

For running application on different tomcat  whether i needed to use five
slave or slave is only used for distributing build?
Can i create one slave in same machine to run application only?


Re: Can i run master and slave on same machine

2012-06-27 Thread Mark Waite
I'm not a tomcat user, so I can only guess how it might work in the case you're 
describing.
 
If each of your tomcat servers runs on a different port or ports, and if your 
master node has sufficient processing power to run all the tomcat and related 
processes in parallel, then you can run them on the master.  
 
If any of the tomcat servers are required to use the same port as another 
tomcat server, then you'd need to use a second machine (I think).
 
Wouldn't it be easiest to try it and see what happens?  Jenkins is easy to 
install and run.  I suspect you'll learn faster and discover more if you 
configure one of your projects on the master node (just enough to see that it 
works), then configure a second project on the master node, and confirm that it 
works for both the first job and the second job.  If you detect collisions, 
that means you either need to resolve the collisions, or use a slave.
 
Mark Waite



 From: Varghese Renny varghesekre...@gmail.com
To: jenkinsci-users@googlegroups.com 
Sent: Wednesday, June 27, 2012 9:17 AM
Subject: Re: Can i run master and slave on same machine
  




i have only 5 projects to run.But i run all this project on tomcat server 
using jenkins. 5 project means 5 web applications which are accessing five 
different database.So five jenkin job on one tomcat server and i need five 
other tomcat instance for five application to make up. Since while build is 
running i have to stop these five tomcat.

For running application on different tomcat  whether i needed to use five 
slave or slave is only used for distributing build?
Can i create one slave in same machine to run application only?