Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.
/ mac-plugin Public archive

Plugin to configure Macs as Jenkins slaves

License

Notifications You must be signed in to change notification settings

groupe-edf/mac-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mac Plugin

This plugin allows to configure a cloud of Mac in Jenkins configuration.

Like docker and kubernetes plugins does, you can configure your builds to run on a cloud of Mac.

All builds are independent and there is a restricted space dedicated to read and write to this single build. This space is removed at the end of the build so that no traces remain on the machine.

Plugin configuration

In jenkins global configuration, add a new Mac Cloud :

Configure fields of Mac Cloud :

Select JNLP for the connector and refer your Jenkins URL. This URL must be accessible by outside, localhost is not working.

Add a new Mac Host and fill the properties in the fields :

The number of simultaneous builds on the same Mac Host depends of the property "Max users". More you have Mac Hosts configured, more you can build simultaneous on many machines. For best usage I recommend a limit of 3.

The supported credentials for now is User and Password. Put an account of your mac with sudo NOPASSWORD configured.

After it refers the label of your agent. Select JNLP for the connector and refer your Jenkins URL. This URL must be accessible by outside, localhost is not working.

In a project configuration, refers the label :

Logs configuration

You can define a custom LOGGER to log every output of the plugin on the same place. To do it, go to System logs in the Jenkins configuration :

Configure the Logger of the plugin :

Save your configuration.

Execution

After configuration, when you run a job with a Mac Cloud label, it will create a jenkins agent on the mac you setted as host and run the build on it.

You can see it on the home page of Jenkins :

About

Plugin to configure Macs as Jenkins slaves

Resources

License

Stars

Watchers

Forks

Packages

No packages published