azure-templatesjenkins

Upgrade Jenkins

To upgrade Jenkins without losing your data, download the latest jenkins.war file, copy it to your /opt/bitnami/jenkins directory and restart the services.

It is recommended to create a backup of the previous Jenkins directory. You may want to revert to the previous version if you find any issues after upgrading.

Upgrading only Jenkins

Execute the following steps to upgrade only Jenkins:

  • Stop the server:

    $ sudo service bitnami stop
    
  • Copy your previous directory in case you need to restore it:

    $ cp -pr /opt/bitnami/jenkins  ~/jenkins.bak
    
  • Remove all Jenkins files to deploy the new version:

    $ rm -r /opt/bitnami/jenkins/jenkins*
    
  • Download the new version of Jenkins:

    $ cd /tmp
    $ wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
    $ mv jenkins.war /opt/bitnami/jenkins
    
  • Start the server:

    $ sudo service bitnami start
    

Upgrading all the components

Execute the following steps:

  • Start a new image with the latest Jenkins version.

  • Stop the server:

    $ sudo service bitnami stop
    
  • Move the content of /opt/bitnami/jenkins in your current installation to the new installation.

  • Restart the server:

    $ sudo service bitnami start
    
Last modification August 31, 2018