Skip to content

Instantly share code, notes, and snippets.

@tibo
Created February 7, 2011 01:37
Show Gist options
  • Save tibo/813900 to your computer and use it in GitHub Desktop.
Save tibo/813900 to your computer and use it in GitHub Desktop.
Jenkins Launchd configuration
<?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>UserName</key>
<string>jenkins</string>
<key>Label</key>
<string>org.jenkins-ci.jenkins</string>
<key>EnvironmentVariables</key>
<dict>
<key>JENKINS_HOME</key>
<string>/Users/jenkins/Jenkins/work/</string>
</dict>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>-jar</string>
<string>/Users/jenkins/Jenkins/jenkins.war</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>SessionCreate</key>
<true />
</dict>
</plist>
@tibo
Copy link
Author

tibo commented Jun 24, 2011

Put it in /Library/LaunchDaemons/ as org.jenkins-ci.jenkins.plist and load it with launchctl load /path/to/file.plist

@wilrnh
Copy link

wilrnh commented Jan 21, 2020

If anyone is having issues with codesigning, try replacing ProgramArguments with a bash script wrapper. Also try deleting all signing credentials (certs, keys, CAs) in the keychains and reimporting them (I use fastlane's match).

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