2

How to upgrade Jenkins Server cartridge (openshift) to latest version, please?

Ryne Everett
  • 6,427
  • 3
  • 37
  • 49
cviniciusm
  • 139
  • 1
  • 2
  • 13

3 Answers3

2

It can be done by getting the latest war file and pointing an environment variable(JENKINS_WAR_PATH) to the new one.

More info here

  • Why the downvotes. This is literally the correct answer. I even upgraded jenkins myself. –  Aug 15 '15 at 05:17
  • 1
    +1, this is correct as mentioned on [github](https://github.com/openshift/jenkins-cloud-plugin/issues/27#issuecomment-41483911) issue page. worked for me as well. – Ammar Jun 15 '16 at 19:39
0

I know it's too late, but here is the correct steps for upgrading Jenkins in Openshift manually.

  1. Install rhc tools from openshift and configure it to your account.
  2. Run rhc set-env JENKINS_WAR_PATH=/path -a your_app_name from terminal.

    Eg : rhc set-env JENKINS_WAR_PATH=/var/lib/openshift/585fdddb2d5271c8bc000109/app-root/data/jenkins_war/jenkins.war -a jenkins

  3. Restrat your app from openshift console.

Read more at : https://bugzilla.redhat.com/show_bug.cgi?id=1099252

Chathura Buddhika
  • 2,067
  • 1
  • 21
  • 35
0

Just a quick note that rhc is for OpenShift 2. If you are using OpenShift 3, you'll need the oc binary.

David Medinets
  • 5,160
  • 3
  • 29
  • 42