Home/Q&A/Can a rented Mac mini work as a Jenkins build agent?

Can a rented Mac mini work as a Jenkins build agent?

Updated · airankrush

Direct answer

It depends on the connection direction. An agent that connects out to the controller works. Having the controller connect to the agent over SSH is not a good fit, because the machine may not be reachable from the public internet.

Basis

  • The Jenkins documentation (Exposed Services and Ports, checked 2026-11-12) explains that the controller can open a TCP port for inbound agents to connect to, and that agents can use WebSocket transport instead, in which case no extra TCP port is needed and traffic goes through the controller's existing web address.
  • In both cases the machine running the agent opens the connection to the controller. That is the same direction as GitHub and GitLab runners, and it places no inbound requirement on this Mac.
  • The other common setup is to enter a host and SSH credentials in the node configuration and let the controller connect to the node's SSH port. That requires the controller to be able to reach the node. The connection methods we deliver are UU Remote and RustDesk only, and whether the machine can be reached from the public internet is determined by the delivery notes.
  • The agent is a Java process. The customer account has admin rights, so you can install a JDK with Homebrew.

Information as of .

Boundaries: when the answer is different

All of this assumes this machine can reach your controller. If the controller sits only on a company intranet and needs a VPN to get in, this route is closed: you may not change the network configuration during the rental, and you must check with support before installing VPN-type software. We do not provide a Jenkins controller, only the Mac. The agent process has to stay running, so you need to set it up yourself to start at login. Jobs that need the simulator or signing must run in the logged-in user's session, not as a pure background system service. Whether the login state is restored after the machine restarts is something to ask support to check against the delivery configuration.

How to do it

  1. Create a node on the controller and choose the launch method where the agent connects to the controller, preferring WebSocket.
  2. On the remote Mac, install a JDK and download the agent program offered on the controller's page.
  3. Start the agent with the command shown on the page and confirm the node goes online.
  4. Turn that start command into a login item for the current user.
  5. Give the node a macOS label and restrict iOS jobs to it.

Use case

This question belongs to the use case: Rented Mac mini as an always-on build machine for small teams? Count your build minutes first

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A