'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
wardirectory towar.bak - Rename
jenkins.wartojenkins.war.bak - Copy new
jenkins.warinto Jenkins directory - Start Jenkins windows service
- Observe creation of
wardirectory which will now contain contents ofjenkins.wararchive - 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 Jenkinsvia the menu and Action any notifications displayed - plugins, data format conversions etc. - Delete
jenkins.war.bakfile andwar.bakfolder
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 
Method-2
- Go to
C:\Program Files\Jenkinsand 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 |
