java.lang.ClassCastException: com.cloudbees.hudson.plugins.folder.Folder cannot be cast to hudson.model.AbstractProject

Jenkins JIRA | Romain Chalumeau | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.cloudbees.hudson.plugins.folder.Folder cannot be cast to hudson.model.AbstractProject

      at javaposse.jobdsl.plugin.ExecuteDslScripts.updateGeneratedJobs()
    2. javaposse.jobdsl.plugin
      ExecuteDslScripts.perform
      1. javaposse.jobdsl.plugin.ExecuteDslScripts.updateGeneratedJobs(ExecuteDslScripts.java:278)
      2. javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:177)
      2 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      3. hudson.model.Build$BuildExecution.build(Build.java:198)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:159)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523)
      6. hudson.model.Run.execute(Run.java:1700)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:231)
      9 frames