Jenkins-Tomcat manual upgrade script

By polfilm,

  Filed under: Continuous Integration, Jenkins, Ubuntu
  Comments: None

 echo "stopping tomcat"
 sh /etc/init.d/tomcat6 stop
 cd /var/lib/tomcat6/webapps
 echo "removing jenkins"
 rm -rf jenkins
 rm -rf jenkins.war
 echo "downloading latest jenkins"
 echo "starting tomcat"
 sh /etc/init.d/tomcat6 start
 cd ~
 echo "done"

In ubuntu old jenkins.war is in /usr/share/jenkins/ folder
In ubuntu use “service tomcat6 stop” to stop the service

Be the first to write a comment.

Your feedback

You must be logged in to post a comment.