Downgrade Jenkins

放肆的年华 提交于 2019-12-10 13:56:42

问题


I updated Jenkins a few days ago. But in the current Jenkins version, there are some annoying bugs. Is it possible to downgrade the version of Jenkins and if this is possible, how is it possible to do it?


回答1:


Downgrading should be equivalent to the upgrading process:

To upgrade from earlier versions of Jenkins, simply redeploy the WAR file. Read this document for more about container-specific instructions on how to do this. See this document for automation.




回答2:


I have been struggling with downgrading Jenkins as well, lately because the latest version seems to have a problem handling JDK 5 code (which I am unfortunately tied to for a little while longer)

Here's how I did my downgrade:

  1. Locate an earlier stable version at https://updates.jenkins-ci.org/
  2. Download the war file
  3. Stop the Jenkins service
  4. Replace the jenkins.war with the new.
  5. Restart the service.

I had an additional issue with the configuration file not being compatible. E.g. In my case I had to disable matrix to get the service running. Your case may be different, so I suggest another question.




回答3:


If you have upgraded from front end (i.e. Manage Jenkins > Upgrade Jenkins) Then you will get an option to Downgrade also from there (under Manage Jenkins -- restore to previous version)




回答4:


In my case, I followed the process below -

Download the jenkins.war file from https://updates.jenkins-ci.org
Stop the Jenkins service
Replace the jenkins.war with the new.
Restart the service.
Done



回答5:


I easily rolled back to the last working version bydoing below steps:

  1. Go to the location where jenkins is installed.
  2. Rename jenkins.war if it exists to jenkins.war.corrupted
  3. You would find a file jenkins.war.bak in same direcotry. Rename it to 'jenkins.war'


来源:https://stackoverflow.com/questions/30975866/downgrade-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!