Setting up jenkins slave on Mac OS

前端 未结 2 964
半阙折子戏
半阙折子戏 2021-01-12 15:15

I\'m confused about setting up Jenkins slave on Mac. Google seems to have a great answer for java web start option (https://blog.codecentric.de/en/2012/01/continuous-integra

2条回答
  •  天命终不由人
    2021-01-12 16:17

    You do need a user on the Mac which the Jenkins master will use to ssh in. But this is exactly the same as setting up a Linux slave.

    Whether the user needs elevated privileges depends on what you want Jenkins to do with the account.

    You also need to log into Mac from the console using an admin user and turn on remote login in the Sharing panel of System Preferences. In the same panel you can restrict the remote login to specific users or allow all users to log in.

    If I were you, I would create a normal user for Jenkins using the Users and Groups panel in System Preferences. Creating a hidden user using command line tools is possible, but it is a bit involved. If you really want to go there, you can check how postinstall script in Jenkins Mac installer creates a user named jenkins:

    https://github.com/jenkinsci/packaging/blob/master/osx/scripts/postinstall-launchd-jenkins

提交回复
热议问题