java.lang.ClassCastException: hudson.model.FreeStyleProject cannot be cast to org.jenkinsci.plugins.jobgenerator.JobGenerator

Jenkins JIRA | Walter Kacynski | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

    Root Cause Analysis

    1. java.lang.ClassCastException

      hudson.model.FreeStyleProject cannot be cast to org.jenkinsci.plugins.jobgenerator.JobGenerator

      at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.cleanUp()
    2. org.jenkinsci.plugins
      GeneratorRun$GeneratorImpl.cleanUp
      1. org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.cleanUp(GeneratorRun.java:427)
      1 frame
    3. Hudson
      Run.execute
      1. hudson.model.Run.execute(Run.java:1620)
      1 frame
    4. org.jenkinsci.plugins
      GeneratorRun.run
      1. org.jenkinsci.plugins.jobgenerator.GeneratorRun.run(GeneratorRun.java:206)
      1 frame
    5. Hudson
      OneOffExecutor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:237)
      3. hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)
      3 frames