Parallels Desktop Cloud Plugin

With the Jenkins plugin, Parallels Desktop virtual machines are launched dynamically whenever they are needed to build jobs, and then suspended during idle time, for high-density usage of resources.

If you develop cross-platform software that targets OS X and iOS, then you probably know you can't run OS X virtual machines on regular PC hardware. For continuous integration, you have to use Mac computers in your setup. With this plugin you can run all your builds on a single "homogeneous" setup and worry less about the infrastructure.

Guest OS support:

Requirements:

Installation

This plugin is not yet available in the Jenkins plugin "hub", but it will be there soon. Until then, you can install the plugin easily by uploading the binary to Jenkins through Plugin Manager UI.

To do so:

Configuration

First you must configure a host machine on which Parallels Desktop is installed. Enable "Remote Login" in OS X "Sharing" settings to allow incoming SSH connections.

Then make sure that you have Java 1.7.0 or greater on your virtual machines. Otherwise Jenkins will be unable to start slaves on them.

Cloud Configuration

alt tag

Slave Configuration

alt tag

Usage

Now in any of the build jobs you can set Labels to one of those you configured in your VMs during the Slave Configuration step.

When your job is scheduled and there are not enough executors to perform the build, the plugin will find a suitable virtual machine, start it, and use it to build the job. Then after approximately 1 minute of inactivity the VM will be stopped.

FAQ/Troubleshooting

Q: The "Host" field in the Cloud configuration goes blank after I save and re-open the Jenkins configuration.

A: This is a known problem that we are working on. In the meantime, your changes are being saved properly, but just not being displayed.

Bugs, Pull Requests and Contacts

Feel free to file bugs or change requests here: https://github.com/Parallels/jenkins-parallels