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

[FSTrigger] Polling error: NoClassDefFoundError: hudson/matrix/MatrixRun

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • fstrigger-plugin
    • None
    • Jenkins version: 2.249.3, 2.263.1

      FSTrigger plugin version: 0.40
      Multijob plugin: 1.36
      EnvInject API Plugin: 1.7
      Environment Injector Plugin: 2.3.0

      Operating system: Windows Server 2012 R2
    • fstrigger-0.41

      Since upgrading the FSTrigger plugin to version 0.40 the trigger fails with the following error message:

      Polling started on 16.11.2020 13:40:02
      Polling for the job XXX
      Looking nodes where the poll can be run.
      Looking for a candidate node to run the poll.
      Can't find any eligible slave nodes.
      Trying to poll on master node.Polling on master.
      [ERROR] - Polling error...
      [ERROR] - Error message: hudson/matrix/MatrixRun
      

      Jenkins log:

      Polling failed
      java.lang.NoClassDefFoundError: hudson/matrix/MatrixRun
      	at org.jenkinsci.lib.envinject.service.EnvInjectActionRetriever.getEnvInjectAction(EnvInjectActionRetriever.java:25)
      	at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getEnVars(EnvVarsResolver.java:56)
      	at org.jenkinsci.lib.envinject.service.EnvVarsResolver.getPollingEnvVars(EnvVarsResolver.java:35)
      	at org.jenkinsci.plugins.fstrigger.service.FSTriggerComputeFileService.computedFile(FSTriggerComputeFileService.java:45)
      	at org.jenkinsci.plugins.fstrigger.triggers.FileNameTrigger.getNewResolvedFiles(FileNameTrigger.java:187)
      	at org.jenkinsci.plugins.fstrigger.triggers.FileNameTrigger.checkIfModified(FileNameTrigger.java:170)
      	at org.jenkinsci.lib.xtrigger.AbstractTrigger$Runner.run(AbstractTrigger.java:202)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

       

      Job Settings:

       

      This error was introduced with version 0.40. After downgrading to version 0.39 and restarting the Jenkins instance, it works again.

          [JENKINS-64229] [FSTrigger] Polling error: NoClassDefFoundError: hudson/matrix/MatrixRun

          Sergei added a comment - - edited

          Hi stealthdj .

          Any updates about this issue?

           

          I can't to disable plugins as Simon said, cause it'll affected to another jobs. 

          What can i do to fix this issue?

           

          I use Windows Server 2019 (Windows 10)

          Jenkins v290

          FSTrigger v0.40

           

          Thank you

          Sergei added a comment - - edited Hi  stealthdj  . Any updates about this issue?   I can't to disable plugins as Simon said, cause it'll affected to another jobs.  What can i do to fix this issue?   I use Windows Server 2019 (Windows 10) Jenkins v290 FSTrigger v0.40   Thank you

          Sergei added a comment - - edited

          Hi, gbois 

          Could you please take a look?

          A new multitask was created yesterday and the polls worked as expected. But today it broke again with the same errors.

          Thank you.

          Sergei added a comment - - edited Hi, gbois   Could you please take a look? A new multitask was created yesterday and the polls worked as expected. But today it broke again with the same errors. Thank you.

          Sergei added a comment -

          UPDATES:

          it is doesn't work after first time changes found

          Sergei added a comment - UPDATES: it is doesn't work after first time changes found

          Sergei added a comment -

          Sergei added a comment -

          Sergei added a comment -

          Sergei added a comment -

          Tony Noble added a comment -

          sijay- apologies again for the delay.  I've managed to replicate the issue and have a fix that seems to be working for me.  I'll get a release out shortly.

          Tony Noble added a comment - sijay - apologies again for the delay.  I've managed to replicate the issue and have a fix that seems to be working for me.  I'll get a release out shortly.

          Sergei added a comment - - edited

          stealthdj

          No problem.

          Thanks for the prompt update.

          Could you tell me when to expect the release?

           

          Sergei added a comment - - edited stealthdj No problem. Thanks for the prompt update. Could you tell me when to expect the release?  

          Tony Noble added a comment -

          sijay, simontunnat - thanks for your patience with this.  FSTrigger-0.41 has now been released that should resolve the issue.  Please let me know how you get on with it.

          Tony Noble added a comment - sijay , simontunnat - thanks for your patience with this.  FSTrigger-0.41 has now been released that should resolve the issue.  Please let me know how you get on with it.

          Sergei added a comment -

          stealthdj

          Yes, it works now. Thank you a lot!

          But, have another problem while i try to save configuration with FSTrigger and without. 

          When i tring to save with: Jenkins freezes.

          Sergei added a comment - stealthdj Yes, it works now. Thank you a lot! But, have another problem while i try to save configuration with FSTrigger and without.  When i tring to save with: Jenkins freezes.

          Tony Noble added a comment -

          Hi sijay - I'm not seeing the same behaviour here, I'm afraid.  Is there anything in the Jenkins log?  Also, which version of Jenkins is this occurring with?  May require a new issue to be raised...

          Tony Noble added a comment - Hi sijay - I'm not seeing the same behaviour here, I'm afraid.  Is there anything in the Jenkins log?  Also, which version of Jenkins is this occurring with?  May require a new issue to be raised...

            stealthdj Tony Noble
            simontunnat Simon Tunnat
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: