leglesslizard
4/18/2016 - 1:41 PM

Upgrade Jenkins on Ubuntu AWS with tomcat

Upgrade Jenkins on Ubuntu AWS with tomcat

$ cd /opt/bitnami
## Stop the server
$ ./ctlscript.sh stop
 
## Copy your previous .war file in case you need to restore it
$ cp apache-tomcat/webapps/jenkins.war apps/jenkins/jenkins.war.bak
 
## Remove jenkins all files to force Tomcat to deploy the new jenkins.war file
$ rm -r apache-tomcat/webapps/jenkins
$ rm -r apache-tomcat/webapps/jenkins.war
$ rm -r apache-tomcat/work/Catalina/localhost/jenkins
 
## Donwload the new version of jenkins
$ wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
$ mv jenkins.war apache-tomcat/webapps/
 
## Start the server
$ ./ctlscript.sh start