[Problem]
If you download the Jenkins pkg file and run it immediately after installation, you may encounter the following error:
localhost:8080 ... error..
When you enter
cat /var/log/jenkins/jenkins.log
you can see the following log:
JLRequestRuntimeInstall: Error calling: CFMessagePortCreateRemote
[Solution]
If you install the JDK and then run the pkg file again,
(the script will work normally and you will be able to access the Jenkins page.)
I have even completed Jenkins auto-build.
Below is the procedure I followed:
1. Install Jenkins
2. Set environment variables in the Unity3d Plugin (Unity app path)
3. Download android-sdk and set the path
4. Write a shell script for automatic FTP upload of build files (I wrote a separate script as the existing FTP plugin did not work due to in-house system constraints)
5. Set the build schedule
If you have any questions,
please contact me at gipyeong.lee@madorca.com :)
I apologize for not having time to organize the related resources (_ _)
The following is for installation using brew.
1. Install brew on your Mac.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. Install jenkins.
brew install jenkins
It will install automatically after that.
3. Configuration
-
To launch, start jenkins at login:
mkdir -p ~/Library/LaunchAgents ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents -
To load jenkins now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
4. Additional configuration (setting it to the current user instead of a separate jenkins user)
sudo vim /Library/LaunchDaemons/org.jenkins-ci.plist
Change to the content below.
(Assuming 'buildpc' is the user)
<?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</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>-jar</string>
<string>/usr/local/Cellar/jenkins/1.636/libexec/jenkins.war</string>
</array>
<key>OnDemand</key>
<false/>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>buildpc</string>
</dict>
</plist>
After that:
launchctl unload -w /Library/LaunchDaemons/org.jenkins-ci.plist
launchctl load -w /Library/LaunchDaemons/org.jenkins-ci.plist