Created
January 13, 2021 09:12
-
-
Save ShubhamRasal/04539a4eef2cc900179bd5df56a88743 to your computer and use it in GitHub Desktop.
How to connect mac machine as slave to jenkins. create this file at ~/Library/LaunchAgents/com.mycicd.plist then launchctl load com.mycicd.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
<plist> | |
<dict> | |
<key>Label</key> | |
<string>com.mycicd.jenkins-agent</string> | |
<key>UserName</key> | |
<string>admin</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>WorkingDirectory</key> | |
<string>/Users/username/jenkins_data</string> | |
<key>StandardOutPath</key> | |
<string>/Users/username/jenkins_data/stdout.log</string> | |
<key>StandardErrorPath</key> | |
<string>/Users/username/jenkins_data/stderr.log</string> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> | |
</dict> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/opt/openjdk/bin/java</string> | |
<string>-jar</string> | |
<string>/Users/username/jenkins_data/agent.jar</string> | |
<string>-jnlpUrl</string> | |
<string>http://mycicd.companyname.com/computer/MAC/slave-agent.jnlp</string> | |
<string>-secret</string> | |
<string>32d13f36bfdc3248db3cc24413c1f3253a14ddcb32a0079e92df90024d3c99f8</string> | |
</array> | |
</dict> | |
</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
create this file at ~/Library/LaunchAgents/com.mycicd.plist then launchctl load com.mycicd.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment