How to install jenkins under current user (not 'jenkins') on MAC OS X

前端 未结 2 1808
眼角桃花
眼角桃花 2021-02-06 06:15

I have configured MAC OS X environment (SDKs, licenses, etc) under current user for build server and would like to reuse all the settings by a build agent. Jenkins was chosen as

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 07:02

    If you're free to reinstall however you'd like, I'd recommend re-installing as the user you want to use, using whatever type of install you prefer, and then simply copy over the old Jenkins data directory to the new installation's location, and then changing the permissions in that directory.

    That is to say, the directory containing the config, plugin and job information (it may be something like /usr/lib/jenkins, but could vary).

    Then, chown -R the data directory using the user:group info you want to use so Jenkins has access to the files.

    I have used this type of method in the past to transfer all the data from one install to another totally separate install on the same box, and it has worked well (one could use this method to transfer the data to an install on another box, as well).

    Note: I would highly recommend making a full backup of the data directory before doing this, in case anything goes awry.

提交回复
热议问题