Khurram Shahzad
Khurram Shahzad

Reputation: 1

Upgrade Jenkins on CentOS

I am trying to upgrade Jenkins from version 2.176.1 to 2.375.2. I tried two methods and both of them failed.

  1. Method-1: Download the jenkins.war and copy it into /usr/lib/jenkins/ directory by replacing the original one. After copying, when I restart Jenkins, it simply fails to restart.

  2. Method-2: Upgrade Jenkins' RPM using yum update jenkins. This command runs successfully and process exists without any error. But, again when I restart Jenkins, it fails to start.

CentOS version: CentOS-7

Upvotes: 0

Views: 1592

Answers (1)

David-kn
David-kn

Reputation: 361

First of all - I can only support opinion of Dmitriy Tarasevich about reading upgrade guides. You can find theme here: https://www.jenkins.io/doc/upgrade-guide/

Then - stick to the version upgrade process that you've used previously (or for the first time with installation). If you did install it via .*war, don¨t worry and use your Method-1. On the other hand, if you used yum, stick to that method-2.

Then - such a "big" upgrade at once from 2.176.1 to 2.375.1 is, I'd say, the reason it's failing for you as the version in between contain several major/breaking changes (our team has faced the same problem (we "just" wanted to bump the versions too much after a long time of no upgrading and we've faced several problems we weren't able to solve together). So it was necessary to split it into several independent upgrades which appeared to be doable and we managed to get to LTS 2.375).


To summarize recommended steps - I'd you need to:

1/ Split your upgrade into several steps and upgrade LTS more gradually: try to upgrade to first to some not-current LTS version. I believe something less than or precisely 2.303.3 could work and see if you can start it.

  • then actually run Jenkins and check administration page,
  • upgrade your plugins (if you want). FYI: this is recommended officially in Jenkins docs after every Jenkins core upgrade.
  • check Jenkins administration page and apply necessary changes / manage necessary decision that might appear there (if applicable).

2/ Try to upgrade to a higher LTS version (repeat step 1 with its sub-steps)


To be a very specific and give some examples (although I don't remember everything by hearth):

Please, try to make some gradual progress and let us know where you managed to get

Upvotes: 0

Related Questions