HanG321 Blog

Install Jenkins on Tomcat 7 (DSM)

– download  jenkins.war  from http://jenkins-ci.org/

– increase upload limit on  /var/packages/Tomcat/target/src/webapps/manager/WEB-INF/web.xml 

– edit username and roles on  /var/packages/Tomcat/target/src/conf/tomcat-users.xml

e.g.  <user username="manager" password="manager" roles="manager-gui,manager-status"/>

– config JENKINS_HOME on /var/packages/Tomcat/target/src/conf/context.xml

Anywhere of your choice, remember to modify that directory, allow access by tomcat(http group).
#cd /volume2/homes/
#chown username.http username
#cd username && mkdir .jenkins && chmod 775 .jenkins

– Control panel > Groups > http, edit, allow read/write for Tomcat share folder

– Go to tomcat url, click Manager App
deploy jenkins.war, then start jenkins

 

# to view Debian domain path
realpath /var/packages/Tomcat/target ==> /volume2/\@appstore/Tomcat7/

reference: https://wiki.jenkins-ci.org/display/JENKINS/Tomcat