'Upgrading Jenkins Windows Native Package Manually

we are using Jenkins 1.527 as a Windows service. We installed it using its Windows native package installer. Now We want to manually update it to the latest version. We don't want to lose our currently used job configurations. Is simply uninstalling and installing the new package enough to accomplish this task ? Thanks in advance.



Solution 1:[1]

I figured it out; just replace the updated war file with the old one :)

Solution 2:[2]

Nice post here on the same.

NOTE: ALWAYS A GOOD IDEA TO KEEP BACKUP

In a nutshell

  • Stop the Jenkins windows service
  • Rename war directory to war.bak
  • Rename jenkins.war to jenkins.war.bak
  • Copy new jenkins.war into Jenkins directory
  • Start Jenkins windows service
  • Observe creation of war directory which will now contain contents of jenkins.war archive
  • Navigate to Jenkins home page, at which point you will be informed that Jenkins is preparing your installation
  • Once complete, test your existing jobs to verify compatibility
  • Navigate to Manage Jenkins via the menu and Action any notifications displayed - plugins, data format conversions etc.
  • Delete jenkins.war.bak file and war.bak folder

Solution 3:[3]

Method-1 You can upgrade either going to the manage Jenkins and click on button - Or Upgrade Automatically for the latest version of jenkins Manage Jenkins

Method-2

  • Go to C:\Program Files\Jenkins and replace jenkins.war file with the desired jenkins version. Jenkins war version's are available here: https://get.jenkins.io/war-stable/
  • Restart jenkins service.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 batabek
Solution 2
Solution 3 Gopa Vasanth