Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading Jenkins Windows Native Package Manually

Tags:

jenkins

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.

like image 659
batabek Avatar asked Sep 25 '14 18:09

batabek


2 Answers

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

like image 61
batabek Avatar answered Oct 02 '22 15:10

batabek


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
like image 29
Saikat Avatar answered Oct 02 '22 15:10

Saikat