Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65650

java.lang.NoClassDefFoundError: org/junit/rules/ExternalResource on builds after upgrade to 2.277.4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gerrit-trigger-plugin
    • None
    • jenkins/jenkins:2.277.4-lts-slim docker image

       

      For every build since upgrading from 2.277.2 to 2.277.4 Jenkins appears to work fine, but throws frequently the following traceback in the logs:

       

      2021-05-16 22:00:00.601+0000 [id=109937]        WARNING        h.model.listeners.RunListener#report: RunListener failed
      java.lang.NoClassDefFoundError: org/junit/rules/ExternalResource
              at org.jvnet.hudson.test.BuildWatcher$Listener.onStarted(BuildWatcher.java:89)
              at hudson.model.listeners.RunListener.fireStarted(RunListener.java:238)
              at hudson.model.Run.execute(Run.java:1905)        
              at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
              at hudson.model.ResourceController.execute(ResourceController.java:97)
              at hudson.model.Executor.run(Executor.java:429)   
      
      2021-05-16 22:00:07.018+0000 [id=109937]        WARNING        h.model.listeners.RunListener#report: RunListener failed
      java.lang.NoClassDefFoundError: org/junit/rules/ExternalResource
              at org.jvnet.hudson.test.BuildWatcher$Listener.onFinalized(BuildWatcher.java:100)
              at hudson.model.listeners.RunListener.fireFinalized(RunListener.java:255)
              at hudson.model.Run.onEndBuilding(Run.java:2069)  
              at hudson.model.Run.execute(Run.java:1976)        
              at hudson.matrix.MatrixRun.run(MatrixRun.java:153)
              at hudson.model.ResourceController.execute(Resource~   

       

       

            Unassigned Unassigned
            rikuvoipio Riku
            Votes:
            2 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: