Setting up a jenkins slave on Mac Mini

Standard

I just set up a jenkins slave on a mac mini. Go through a little learning curve here and there. This is how you set it up

  1. Run brew install jenkins
  2. Run “brew services start jenkins” to start jenkins
  3. save this plist file into /User/jenkins/Library/LaunchAgent/slave.plist. Do remember that it will not work if you save the file under LaunchDaemons
  4. Run the file via launchctl
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

  <dict>

    <key>Label</key>

    <string>org.macminislave-ci</string>

    <key>ProgramArguments</key>

    <array>

      <string>/usr/bin/java</string>

      <string>-jar</string>

      <string>/Users/jenkins/slave.jar</string>

      <string>-jnlpUrl</string>

      <string>http://jenkins-master:8080/computer/MacMiniSlave/slave-agent.jnlp</string>

      <string>-secret</string>

      <string><whatever secret></string>

    </array>

    <key>RunAtLoad</key>

    <true/>

  </dict>

</plist>


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s