What is best way to upgrade jenkins from 2.235.2 to latest .

142 views
Skip to first unread message

Ravindra Verma

unread,
May 11, 2023, 4:23:19 AM5/11/23
to Jenkins Users
Hi Folks , 

I have Jenkins 2.235.2 installed on ubuntu machine using package manger , it has many vulnerable  plugging as well . 

I tried to upgrade it latest version using upgrade guide with the package manger but had 3 failure attempts with many bootstrap error and had to roll back with snapshot . 

Please suggest me what is best way to prepare it for upgrade without failure . 


Adrien Lecharpentier

unread,
May 11, 2023, 5:32:57 AM5/11/23
to Jenkins Users
Hello, 

Since 2.361.x, Jenkins requires a JVM 11 to run. Would it be by any chance the reason why it failed in your previous attempts?

I would suggest you to first, backup your installation. 
Then, upgrade to 2.346.3, upgrade the plugins. Validates that all works, take a new backup. Then upgrade the JVM used. Take a second backup of the installation.
Then, upgrade to 2.361.4 and the required plugins. 
Take a new backup.

At this point, you can upgrade to the latest lts version.

Backups will help you in case an upgrade of a plugin had to change the data structure store in your Jenkins Home. 

Hoping this helps. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6263fce8-f574-42bc-81aa-8333a6761282n%40googlegroups.com.

Ravindra Verma

unread,
May 12, 2023, 4:59:44 AM5/12/23
to jenkins...@googlegroups.com
Thanks Adrien , 

It worked smoothly , upgraded to LTS without any problems . 



Adrien Lecharpentier

unread,
May 12, 2023, 5:03:58 AM5/12/23
to Jenkins Users
Glad I could help. 

I know it can be difficult, but don't postpone upgrades too much because you're missing security fixes, bug fixes, general improvements and generally, big upgrade like you had to do are more painful than small steps upgrade. 

Ravindra Verma

unread,
May 12, 2023, 5:09:03 AM5/12/23
to jenkins...@googlegroups.com
Thanks , will try to keep upgrading it on timely bases .

Regards 
Ravindra 

Reply all
Reply to author
Forward
0 new messages