Jenkins on Synology Disk Station
This little guide shows you how to set up a Jenkins server on your Synology Disk Station. It is assumed, that you already connected to your Disk Station via SSH and have a favorite text editor.
- Create User jenkins Watch out: 145 is just a unused ID - may has to be changed
Create Jenkins directory / home
Optional: Symlink in /var
ln -s /opt/jenkins /var/lib/jenkins/
Allow Jenkins to modify its home
cd /opt chown jenkins:jenkins jenkins
Download latest Jenkins
cd /opt/jenkins wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
- Copy jenkins.sh to /usr/local/etc/rc.d/ don't forget chmod +x
- Link into autostart (this step does not work propper - you might have to start the jenkins manually after every boot).
ln -s /usr/local/etc/rc.d/jenkins.sh /usr/syno/etc/rc.d/S999jenkins.sh
Your Jenkins server is now up and running on the port 8080 of your NAS. Have fun.