Move Jenkins to the new server

Tram Ho

The problem is: For some reason, you have to move jenkins from the old server to the new server. (transfer infrastructure, move to cloud …)

  • The simplest solution: Install on a new server, manual configuring again -> Big hands, time consuming, easy to be missing …
  • Solution 2: Install on the new server, backup data from the old server (what needs to be backed up, how to not be redundant, missing …)

I did it in the 2 way:

  1. Install a new jenkins server. Follow this guide, depending on the operating system, I usually follow the instructions on digitalocean
  2. Jenkisn’s data are all in the directory

Copy all data from the old server to the new server. -> done, however, there are many cases that happen.

  1. Normally, in order for jenkins to have enough permissions, the installer usually runs jenkins with local user instead of jenkins’ default user jenkins check on old server, if using local user then config on new server similarly check and backup on file


update localuser and group user with local user in new server, usually default local and group user with the same name

update users and groups for config folders

Then reset the daemon and Jenkins again
Share the news now

Source : Viblo