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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      14:06:11 Started by upstream project "SND-Deploy-AA_Generate" build number 42
      14:06:11 originally caused by:
      14:06:11 Started by user ............
      14:06:11 [EnvInject] - Loading node environment variables.
      14:06:11 Building on master in workspace E:\JenkinsWAND\workspace\SND-Deploy-AA_Template
      14:06:11
      14:06:11 Deleting project workspace...
      14:06:11 FATAL: hudson.model.FreeStyleProject cannot be cast to org.jenkinsci.plugins.jobgenerator.JobGenerator
      14:06:11 java.lang.ClassCastException: hudson.model.FreeStyleProject cannot be cast to org.jenkinsci.plugins.jobgenerator.JobGenerator
      14:06:11 at org.jenkinsci.plugins.jobgenerator.GeneratorRun$GeneratorImpl.cleanUp(GeneratorRun.java:427)
      14:06:11 at hudson.model.Run.execute(Run.java:1620)
      14:06:11 at org.jenkinsci.plugins.jobgenerator.GeneratorRun.run(GeneratorRun.java:206)
      14:06:11 at hudson.model.ResourceController.execute(ResourceController.java:88)
      14:06:11 at hudson.model.Executor.run(Executor.java:237)
      14:06:11 at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

        Attachments

          Activity

          Hide
          syl20bnr Sylvain Benner added a comment -

          Thank you for the bug report.
          Can you attach the jobs configuration involved to be able to reproduce this crash ? I will look into it.

          Show
          syl20bnr Sylvain Benner added a comment - Thank you for the bug report. Can you attach the jobs configuration involved to be able to reproduce this crash ? I will look into it.
          Hide
          mrmass Marius-Remus Mate added a comment - - edited

          This happens when the configuration of a generator project includes a post-build action that triggers a parametrized build on a freestyle project. If the downstream project is a generator, there's no issue.

          In essence, a generator project can't trigger a regular freestyle project.

          Show
          mrmass Marius-Remus Mate added a comment - - edited This happens when the configuration of a generator project includes a post-build action that triggers a parametrized build on a freestyle project. If the downstream project is a generator, there's no issue. In essence, a generator project can't trigger a regular freestyle project.
          Hide
          timor_raiman Timor Raiman added a comment -

          I'm hitting the same issue with a generator, whose generated job is supposed to trigger another job... (a parameterized trigger build step, forcing the execution of a worker job on all slaves)

          Show
          timor_raiman Timor Raiman added a comment - I'm hitting the same issue with a generator, whose generated job is supposed to trigger another job... (a parameterized trigger build step, forcing the execution of a worker job on all slaves)
          Hide
          syl20bnr Sylvain Benner added a comment -

          Since it is big limitation I will look into this during the week.
          Thank you for your reports.

          Show
          syl20bnr Sylvain Benner added a comment - Since it is big limitation I will look into this during the week. Thank you for your reports.
          Hide
          walterk82 Walter Kacynski added a comment -

          FYI, I have upgraded to Jenkins 1.521 and Job Generator 1.14 and this is still a problem. It is blocking my progress to use this plugin any further for my configuration.

          Show
          walterk82 Walter Kacynski added a comment - FYI, I have upgraded to Jenkins 1.521 and Job Generator 1.14 and this is still a problem. It is blocking my progress to use this plugin any further for my configuration.
          Hide
          syl20bnr Sylvain Benner added a comment -

          Fixed in 1.15

          Show
          syl20bnr Sylvain Benner added a comment - Fixed in 1.15
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: syl20bnr
          Path:
          src/main/java/org/jenkinsci/plugins/jobgenerator/GeneratorRun.java
          http://jenkins-ci.org/commit/jobgenerator-plugin/411c643c83ee0bbfbca52f79ea8f11038cb02803
          Log:
          JENKINS-17814 hudson.model.FreeStyleProject cannot be cast to org.jenkinsci.plugins.jobgenerator.JobGenerator

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: syl20bnr Path: src/main/java/org/jenkinsci/plugins/jobgenerator/GeneratorRun.java http://jenkins-ci.org/commit/jobgenerator-plugin/411c643c83ee0bbfbca52f79ea8f11038cb02803 Log: JENKINS-17814 hudson.model.FreeStyleProject cannot be cast to org.jenkinsci.plugins.jobgenerator.JobGenerator

            People

            • Assignee:
              syl20bnr Sylvain Benner
              Reporter:
              walterk82 Walter Kacynski
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: