Re: Difficulty of converting an existing slave to a master ?

2012-04-30 Thread Sami Tikka
There is no way to convert a Jenkins slave to Jenkins master. All
installed software and configuration resides on the master. There is
nothing on the slave to convert.

If you want to use the slave server to run a Jenkins master, you are
basically talking about installing a new Jenkins master.

If you want to copy/move some jobs from the old master to the new one,
you can do it with the Jenkins cli (more info at $JENKINS_URL/cli).
However, it would be best if you had identical plugins installed on
both.

-- Sami

2012/4/30 Mehul Sanghvi mehul.sang...@gmail.com:
 I realised I was not clear enough before.

 I have an existing slave server and what I want to do is
 convert it into a standalone Jenkins server that my group
 can use on its own.  Some of the jobs on the slave
 would get deleted, but other then that, no jobs from
 the existing master would get copied over as we have no
 need for it

 On Mon, Apr 30, 2012 at 08:08, Jan Seidel wakkal...@gmail.com wrote:
 I'm a bit in a hurry so the straight forward no remorse strategy I would use
 is:
 - Disable all the jobs running on the slave and keep the folder so you have
 always a fallback.
 - Mark the slave as offline and stop the service
 - Copy the folder of the master to your slave.
 - on the slave: Delete the secret key file in the folders top level
 (optional but worth doing so)
 - on the slave: Delete all obsolete jobs.
 - on the slave: Create folders in the jobs folder if you have new jobs
 from other machines and copy the config.xml into it. Jenkins will the read
 the configs at startup and show them in the job list.
 - Shutdown the orignal master and fire up the new master.
 - Make all changes you want/need to do so the old and new master do not
 interfere (remove the slaves if you have more executors running on other
 machines)
 - Start the old master and you should have two running masters.
 - You will need to re-enter the credentials on the new machines as the
 secret key are missing/wrong.

 have fun
 Jan
 Am Freitag, 27. April 2012 21:36:46 UTC+2 schrieb Mehul Sanghvi:

 We currently have a Jenkins slave server and were considering converting
 it
 to become a master server.  How difficult is that process ?   I have not
 done
 it before, and although I will be making backups, I just want to ensure
 that
 we do it properly and do not loose data.  At the same time, I would like
 to be able to give a proper estimate to management about how long it
 will take, etc.


 cheers,

      mehul



 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com



 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com


Difficulty of converting an existing slave to a master ?

2012-04-27 Thread Mehul Sanghvi
We currently have a Jenkins slave server and were considering converting it
to become a master server.  How difficult is that process ?   I have not done
it before, and although I will be making backups, I just want to ensure that
we do it properly and do not loose data.  At the same time, I would like
to be able to give a proper estimate to management about how long it
will take, etc.


cheers,

 mehul



-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com