Created
January 16, 2013 06:46
-
-
Save eiyaya/4545150 to your computer and use it in GitHub Desktop.
Launch Jenkins Slave On Mac at User Login,
put org.jenkins.slave.plist in ~/Library/LaunchAgents
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
#!/bin/bash -l | |
export LANG=zh_CN.UTF-8 | |
export com.apple.java.jvmTask=WebStart | |
javaws -verbose -wait http://10.10.86.44:1025/computer/QQCISERVER01/slave-agent.jnlp |
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"?> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.jenkins.slave</string> | |
<key>UserName</key> | |
<string>ciadmin</string> | |
<key>Program</key> | |
<string>/bin/bash</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>-c</string> | |
<string>/Users/ciadmin/launch_jenkins_slave.sh</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>WorkingDirectory</key> | |
<string>/Users/ciadmin</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment