Skip to content

Instantly share code, notes, and snippets.

@Lax
Created December 14, 2017 16:54
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Lax/9b51f9f5850df4a4240337ab9ddd2b0e to your computer and use it in GitHub Desktop.
Save Lax/9b51f9f5850df4a4240337ab9ddd2b0e to your computer and use it in GitHub Desktop.
Start jenkins slave agent on macOS. launchctl load -w com.example.jenkins.plist
<?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>
@maddy10s
Copy link

what is the purpose of SessionCreate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment