-
-
Save digitalhoax/72637a3291c3a736a68643bbfdff83c4 to your computer and use it in GitHub Desktop.
Start jenkins slave agent on macOS. launchctl load -w com.example.jenkins.plist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment