– download jenkins.war from http://jenkins-ci.org/ – increase upload limit on /var/packages/Tomcat/target/src/webapps/manager/WEB-INF/web.xml
1 2 3 4 5 6 |
<multipart-config> <!-- 100MB max --> <max-file-size>104857600</max-file-size> <max-request-size>104857600</max-request-size> <file-size-threshold>0</file-size-threshold> </multipart-config> |
– 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
1 |
<Environment name="JENKINS_HOME" value="/volume2/homes/username/.jenkins" type="java.lang.String"/> |
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 …