How to add a Mac Agent as a service?

1 minute read

Issue

I would like to add a Mac agent as a service.

Environment

  • CloudBees Jenkins Enterprise

  • MAC OSX

Resolution

For a MAC you can config them as Unix agents with launch method Launch agent agents on Unix machines via SSH.

If you decide to use Java Web Start, then the set-up is not straight forward as you will need to manually create the service. Moreover, when you upgrade Jenkins you will need to manually upgrade agent.jar, which is automatically upgraded in the case of the ssh agents. For these reasons, we recommend to use the ssh approach for Mac agents.