jenkinsci / fortify-plugin

Fortify Jenkins plugin
https://plugins.jenkins.io/fortify
Other
23 stars 29 forks source link

Jenkins latest version upgrade #71

Closed akaryakina closed 10 months ago

akaryakina commented 10 months ago

Attempting to get the code to the most recent state in order to overcome build failure. Struggling with getting rid of the "Unable to inject class hudson.model.UserIdMapper".

  1. Updated the parent pom
  2. Updated the bom to the required jenkins base version
  3. Rewrote the FortifyJCasCCompatibilityTest test
  4. Replaced javax.annotation-s with the findbugs ones

The tests are still failing:

[ERROR] com.fortify.plugin.jenkins.FortifyJCasCCompatibilityTest.assertConfiguredAsExpected -- Time elapsed: 12.30 s <<< ERROR!
org.jvnet.hudson.reactor.ReactorException: java.lang.IllegalArgumentException: Unable to inject class hudson.model.UserIdMapper
        at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:291)
        at jenkins.InitReactorRunner.run(InitReactorRunner.java:49)
        at jenkins.model.Jenkins.executeReactor(Jenkins.java:1196)
        at jenkins.model.Jenkins.<init>(Jenkins.java:986)
        at hudson.model.Hudson.<init>(Hudson.java:86)
        at org.jvnet.hudson.test.JenkinsRule.newHudson(JenkinsRule.java:697)
        at org.jvnet.hudson.test.JenkinsRule.before(JenkinsRule.java:406)
        at io.jenkins.plugins.casc.misc.JenkinsConfiguredWithCodeRule.before(JenkinsConfiguredWithCodeRule.java:23)
        at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:601)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalArgumentException: Unable to inject class hudson.model.UserIdMapper
        at hudson.init.TaskMethodFinder.lookUp(TaskMethodFinder.java:130)
        at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
        at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
        at jenkins.model.Jenkins$5.runTask(Jenkins.java:1161)
        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
        at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:70)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        ... 1 more
akaryakina commented 10 months ago

Closing as being irrelevant anymore. All the changes have been added in other PRs.