Created
August 20, 2019 05:51
-
-
Save holysugar/466186c8c06dcf5e6d6bb74aac79b9c3 to your computer and use it in GitHub Desktop.
mac で Jenkins の agent を常駐させるときの
This file contains 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>jenkins-agent</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/java</string> | |
<string>-Dfile.encoding=UTF-8</string> | |
<string>-Djava.awt.headless=true</string> | |
<string>-jar</string> | |
<string>/PATH/TO/workspace/agent.jar</string> | |
<string>-jnlpUrl</string> | |
<string>https://jenkins.example.com/computer/AGENTNAME/slave-agent.jnlp</string> | |
<string>-secret</string> | |
<string>SECRET</string> | |
<string>-workDir</string> | |
<string>/PATH/TO/workspace</string> | |
</array> | |
<key>UserName</key> | |
<string>USERNAME</string> | |
<key>GroupName</key> | |
<string>staff</string> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>SessionCreate</key> | |
<true/> | |
<key>StandardOutPath</key> | |
<string>/var/log/jenkins-stdout.log</string> | |
<key>StandardErrorPath</key> | |
<string>/var/log/jenkins-stderr.log</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment