timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-19859] Dynamic installation of plugin permitted even when dependencies must be updated first #10629

Open timja opened 10 years ago

timja commented 10 years ago

Start with an older version of analysis-core installed, such as 1.49. Go to the update center's Available tab and select checkstyle, then Install (now). The /updateCenter status page correctly shows that a new version of analysis-core has been downloaded, and that you must restart Jenkins for this to take effect. Yet it seems that checkstyle has been dynamically loaded already; and if you actually try to use it, you get an error

[CHECKSTYLE] Collecting checkstyle analysis files...
FATAL: hudson.plugins.checkstyle.parser.Warning.setColumnPosition(I)V
java.lang.NoSuchMethodError: hudson.plugins.checkstyle.parser.Warning.setColumnPosition(I)V
at hudson.plugins.checkstyle.parser.CheckStyleParser.convert(CheckStyleParser.java:120)

Originally reported by jglick, imported from: Dynamic installation of plugin permitted even when dependencies must be updated first
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 9 years ago

scm_issue_link:

Code changed in jenkins
User: Jesse Glick
Path:
src/main/java/org/jenkinsci/test/acceptance/po/PluginManager.java
src/main/java/org/jenkinsci/test/acceptance/po/UpdateCenter.java
http://jenkins-ci.org/commit/acceptance-test-harness/dae6a9a7271ae91498357d2f615b842d81c1ed84
Log:
Yet another @WithPlugins fix, working around JENKINS-19859 this time.

timja commented 2 years ago

[Originally duplicated by: JENKINS-30414]