Skip to content

Instantly share code, notes, and snippets.

@Lax
Created December 14, 2017 16:54
Show Gist options
  • Save Lax/9b51f9f5850df4a4240337ab9ddd2b0e to your computer and use it in GitHub Desktop.
Save Lax/9b51f9f5850df4a4240337ab9ddd2b0e to your computer and use it in GitHub Desktop.

Revisions

  1. Lax created this gist Dec 14, 2017.
    31 changes: 31 additions & 0 deletions com.example.jenkins.plist
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    <?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>com.example.ci</string>
    <key>UserName</key>
    <string>lax</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/bin/java</string>
    <string>-Djava.awt.headless=true</string>
    <string>-jar</string>
    <string>/Users/lax/slave.jar</string>
    <string>-jnlpUrl</string>
    <string>http://$host/computer/$slave_name/slave-agent.jnlp</string>
    <string>-secret</string>
    <string></string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
    <key>SessionCreate</key>
    <true/>
    <key>StandardOutPath</key>
    <string>/tmp/jenkins/stdout.log</string>
    <key>StandardErrorPath</key>
    <string>/tmp/jenkins/error.log</string>
    </dict>
    </plist>