Quantcast

Multiple jenkins's on one mashine

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Multiple jenkins's on one mashine

FerkSwe
Hello everyone. I'm sorry if what I am about to ask will sound completely retarded, but then so be it.

Okay, first off, I have no idea what I'm doing and the only reason I'm doing it is because I want to be able to provide free jenkins's for people that want them, specifically within the minecraft community. I have a thread on the bukkit forums where I give testservers, webhosting, filehosting and similar away and I want to add jenkins to that list. But to be able to do that I am coming to you with my questions.

So, I have a Dedicated server with CentOs 6 on it. Upon this I wish to host more than one Jenkins. And I have no clue how. 
I do know that I would prefer if each Jenkins had it's own user, it's own port and can be controlled individually.

I'm sorry if some of you get offended by me not reading up on stuff but I have tried and it's just very confusing. 
I came across this thread but it didn't really help me all that much since, as stated before, I have no clue what I am doing.

So if someone could point me in the right direction, maybe a tutorial or something? Or maybe even be so nice as to explain it to me I would be very thankful. 

Thanks for atleast reading my silly request.
FerkSwe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple jenkins's on one mashine

Richard Lavoie
For a start, jenkins saves its configurations in a folder so to be independant of each other you need to override it for each instance : https://wiki.jenkins-ci.org/display/JENKINS/Tomcat

Also other options to set the http port and others are specified here : https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins

I'm on my iphone, so hard to write long explanation text, but that's a start.

Richard




On 2012-09-16, at 21:33, FerkSwe <[hidden email]> wrote:

Hello everyone. I'm sorry if what I am about to ask will sound completely retarded, but then so be it.

Okay, first off, I have no idea what I'm doing and the only reason I'm doing it is because I want to be able to provide free jenkins's for people that want them, specifically within the minecraft community. I have a thread on the bukkit forums where I give testservers, webhosting, filehosting and similar away and I want to add jenkins to that list. But to be able to do that I am coming to you with my questions.

So, I have a Dedicated server with CentOs 6 on it. Upon this I wish to host more than one Jenkins. And I have no clue how. 
I do know that I would prefer if each Jenkins had it's own user, it's own port and can be controlled individually.

I'm sorry if some of you get offended by me not reading up on stuff but I have tried and it's just very confusing. 
I came across this thread but it didn't really help me all that much since, as stated before, I have no clue what I am doing.

So if someone could point me in the right direction, maybe a tutorial or something? Or maybe even be so nice as to explain it to me I would be very thankful. 

Thanks for atleast reading my silly request.
FerkSwe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple jenkins's on one mashine

FerkSwe
Okay, let's say I go with the tomcat solution. 
Then I would first install tomcat, and in Tomcat's home/webapps I would put jenkins.war? And to add another jenkins just rename it Jenkins.war maybe?
If I understand the guide Tomcat will take care of the rest after I give it a war file to play with.

Have I understood things correct?

Thanks for your response! 

On Monday, September 17, 2012 4:05:22 AM UTC+2, DarkRift wrote:
For a start, jenkins saves its configurations in a folder so to be independant of each other you need to override it for each instance : https://wiki.jenkins-ci.org/display/JENKINS/Tomcat

Also other options to set the http port and others are specified here : https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins

I'm on my iphone, so hard to write long explanation text, but that's a start.

Richard




On 2012-09-16, at 21:33, FerkSwe <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2tmS9rj4AJEJ">fredr...@...> wrote:

Hello everyone. I'm sorry if what I am about to ask will sound completely retarded, but then so be it.

Okay, first off, I have no idea what I'm doing and the only reason I'm doing it is because I want to be able to provide free jenkins's for people that want them, specifically within the minecraft community. I have a thread on the bukkit forums where I give testservers, webhosting, filehosting and similar away and I want to add jenkins to that list. But to be able to do that I am coming to you with my questions.

So, I have a Dedicated server with CentOs 6 on it. Upon this I wish to host more than one Jenkins. And I have no clue how. 
I do know that I would prefer if each Jenkins had it's own user, it's own port and can be controlled individually.

I'm sorry if some of you get offended by me not reading up on stuff but I have tried and it's just very confusing. 
I came across this thread but it didn't really help me all that much since, as stated before, I have no clue what I am doing.

So if someone could point me in the right direction, maybe a tutorial or something? Or maybe even be so nice as to explain it to me I would be very thankful. 

Thanks for atleast reading my silly request.
FerkSwe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: Multiple jenkins's on one mashine

Mandeville, Rob

I went to https://wiki.jenkins-ci.org/display/JENKINS/Tomcat and double-checked.  What you do depends on how you want the URLs to look.

 

If you have Tomcat on yourhost:8080, then adding a Jenkins war file called “jenkins.war” will create a Jenkins instance rooted at http://yourhost:8080/jenkins.  Adding a second one as “Jenkins.war” will create http://yourhost:8080/Jenkins.  This looks too confusing.

 

If you want multiple Jenkins instances all available at port 8080, make copies of your Jenkins WAR file with names matching what you want for URL.  Rename it minecraft1.war for http://yourhost:8080/minecraft1.

 

Also, you will need to set the environment using the servlet context descriptor.  If you use an actual environment variable, that’s the same throughout Tomcat (as Tomcat is one process), and all the Jenkins instances will be pointing to the same configuration (and job run) files.  Even if you want them to be identical, this is not how you want to do it.

 

--Rob

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of FerkSwe
Sent: Monday, September 17, 2012 2:02 PM
To: [hidden email]
Subject: Re: Multiple jenkins's on one mashine

 

Okay, let's say I go with the tomcat solution. 

Then I would first install tomcat, and in Tomcat's home/webapps I would put jenkins.war? And to add another jenkins just rename it Jenkins.war maybe?

If I understand the guide Tomcat will take care of the rest after I give it a war file to play with.

 

Have I understood things correct?

 

Thanks for your response! 


On Monday, September 17, 2012 4:05:22 AM UTC+2, DarkRift wrote:

For a start, jenkins saves its configurations in a folder so to be independant of each other you need to override it for each instance : https://wiki.jenkins-ci.org/display/JENKINS/Tomcat

 

Also other options to set the http port and others are specified here : <a href="https://wiki.jenkins-ci.org/display/JENKINS/Starting&#43;and&#43;Accessing&#43;Jenkins" target="_blank">https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins

 

I'm on my iphone, so hard to write long explanation text, but that's a start.

 

Richard

 

 


On 2012-09-16, at 21:33, FerkSwe <<a href="javascript:" target="_blank">fredr...@...> wrote:

Hello everyone. I'm sorry if what I am about to ask will sound completely retarded, but then so be it.

 

Okay, first off, I have no idea what I'm doing and the only reason I'm doing it is because I want to be able to provide free jenkins's for people that want them, specifically within the minecraft community. I have a thread on the bukkit forums where I give testservers, webhosting, filehosting and similar away and I want to add jenkins to that list. But to be able to do that I am coming to you with my questions.

 

So, I have a Dedicated server with CentOs 6 on it. Upon this I wish to host more than one Jenkins. And I have no clue how. 

I do know that I would prefer if each Jenkins had it's own user, it's own port and can be controlled individually.

 

I'm sorry if some of you get offended by me not reading up on stuff but I have tried and it's just very confusing. 

I came across this thread but it didn't really help me all that much since, as stated before, I have no clue what I am doing.

 

So if someone could point me in the right direction, maybe a tutorial or something? Or maybe even be so nice as to explain it to me I would be very thankful. 

 

Thanks for atleast reading my silly request.

FerkSwe

The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple jenkins's on one mashine

FerkSwe
Okay, so this would be the easiest way? Is there any other way? yourhost:8080/name does indeed look a bit confusing. Is there any way I can get yourhost:8080 as one jenkins and yourhost:8081 as another?

On Monday, September 17, 2012 9:07:37 PM UTC+2, Mandeville, Rob wrote:

I went to https://wiki.jenkins-ci.org/display/JENKINS/Tomcat and double-checked.  What you do depends on how you want the URLs to look.

 

If you have Tomcat on yourhost:8080, then adding a Jenkins war file called “jenkins.war” will create a Jenkins instance rooted at http://yourhost:8080/jenkins.  Adding a second one as “Jenkins.war” will create http://yourhost:8080/Jenkins.  This looks too confusing.

 

If you want multiple Jenkins instances all available at port 8080, make copies of your Jenkins WAR file with names matching what you want for URL.  Rename it minecraft1.war for http://yourhost:8080/minecraft1.

 

Also, you will need to set the environment using the servlet context descriptor.  If you use an actual environment variable, that’s the same throughout Tomcat (as Tomcat is one process), and all the Jenkins instances will be pointing to the same configuration (and job run) files.  Even if you want them to be identical, this is not how you want to do it.

 

--Rob

 

 

From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Z0mE2xk0ZhgJ">jenkins...@googlegroups.com [mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Z0mE2xk0ZhgJ">jenkins...@googlegroups.com] On Behalf Of FerkSwe
Sent: Monday, September 17, 2012 2:02 PM
To: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Z0mE2xk0ZhgJ">jenkins...@googlegroups.com
Subject: Re: Multiple jenkins's on one mashine

 

Okay, let's say I go with the tomcat solution. 

Then I would first install tomcat, and in Tomcat's home/webapps I would put jenkins.war? And to add another jenkins just rename it Jenkins.war maybe?

If I understand the guide Tomcat will take care of the rest after I give it a war file to play with.

 

Have I understood things correct?

 

Thanks for your response! 


On Monday, September 17, 2012 4:05:22 AM UTC+2, DarkRift wrote:

For a start, jenkins saves its configurations in a folder so to be independant of each other you need to override it for each instance : https://wiki.jenkins-ci.org/display/JENKINS/Tomcat

 

Also other options to set the http port and others are specified here : https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins

 

I'm on my iphone, so hard to write long explanation text, but that's a start.

 

Richard

 

 


On 2012-09-16, at 21:33, FerkSwe <[hidden email]> wrote:

Hello everyone. I'm sorry if what I am about to ask will sound completely retarded, but then so be it.

 

Okay, first off, I have no idea what I'm doing and the only reason I'm doing it is because I want to be able to provide free jenkins's for people that want them, specifically within the minecraft community. I have a thread on the bukkit forums where I give testservers, webhosting, filehosting and similar away and I want to add jenkins to that list. But to be able to do that I am coming to you with my questions.

 

So, I have a Dedicated server with CentOs 6 on it. Upon this I wish to host more than one Jenkins. And I have no clue how. 

I do know that I would prefer if each Jenkins had it's own user, it's own port and can be controlled individually.

 

I'm sorry if some of you get offended by me not reading up on stuff but I have tried and it's just very confusing. 

I came across this thread but it didn't really help me all that much since, as stated before, I have no clue what I am doing.

 

So if someone could point me in the right direction, maybe a tutorial or something? Or maybe even be so nice as to explain it to me I would be very thankful. 

 

Thanks for atleast reading my silly request.

FerkSwe

The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple jenkins's on one mashine

Les Mikesell
On Sat, Sep 22, 2012 at 8:40 AM, FerkSwe <[hidden email]> wrote:
> Okay, so this would be the easiest way? Is there any other way?
> yourhost:8080/name does indeed look a bit confusing. Is there any way I can
> get yourhost:8080 as one jenkins and yourhost:8081 as another?
>

If you run with the embedded winstone instead of tomcat you can run
each on a different port.  And either way, you can run apache with the
ajp proxy module to accept on the normal port 80 and redirect to
whatever port/path the instance is running on.

--
   Les Mikesell
     [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple jenkins's on one mashine

FerkSwe
Okay, so 
Step one:
Figure out and install winstone
Step two: 
Install jenkins with the help of winstone
Step Three:
Get ajp proxy module for apache and make it all awesome

Got'ya! 

On Sunday, September 23, 2012 2:17:37 AM UTC+2, LesMikesell wrote:
On Sat, Sep 22, 2012 at 8:40 AM, FerkSwe <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="gKGWY5a3_E4J">fredr...@...> wrote:
> Okay, so this would be the easiest way? Is there any other way?
> yourhost:8080/name does indeed look a bit confusing. Is there any way I can
> get yourhost:8080 as one jenkins and yourhost:8081 as another?
>

If you run with the embedded winstone instead of tomcat you can run
each on a different port.  And either way, you can run apache with the
ajp proxy module to accept on the normal port 80 and redirect to
whatever port/path the instance is running on.

--
   Les Mikesell
     <a href="javascript:" target="_blank" gdf-obfuscated-mailto="gKGWY5a3_E4J">lesmi...@...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Multiple jenkins's on one mashine

Radha Mohan Maheshwari
in jenkins.war
they packaged winstone also.

if you need to run more than one instance 
 set JENKINS_HOME in enviroment variable for each jenkins instance.
and  start with java -jar jenkins.war  --ajp13Port=8184 --httpPort=8183  

On Sun, Oct 14, 2012 at 5:42 AM, FerkSwe <[hidden email]> wrote:
Okay, so 
Step one:
Figure out and install winstone
Step two: 
Install jenkins with the help of winstone
Step Three:
Get ajp proxy module for apache and make it all awesome

Got'ya! 

On Sunday, September 23, 2012 2:17:37 AM UTC+2, LesMikesell wrote:
On Sat, Sep 22, 2012 at 8:40 AM, FerkSwe <[hidden email]> wrote:
> Okay, so this would be the easiest way? Is there any other way?
> yourhost:8080/name does indeed look a bit confusing. Is there any way I can
> get yourhost:8080 as one jenkins and yourhost:8081 as another?
>

If you run with the embedded winstone instead of tomcat you can run
each on a different port.  And either way, you can run apache with the
ajp proxy module to accept on the normal port 80 and redirect to
whatever port/path the instance is running on.

--
   Les Mikesell
     [hidden email]



--
Radha Mohan Maheshwari


Loading...