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

Parameterised Trigger Plugin succeeds, then reports failure for workflow jobs.

XMLWordPrintable

      Created a job to launch a Jenkins workflow plugin with parameters.

      The parameters are as follows:

      module=aop-table
      branch=master
      DEBUG=false

      The resulting output is:

      Started by user Finn, Tony
      [EnvInject] - Loading node environment variables.
      Building on master in workspace /var/lib/jenkins/workspace/Template for AOPUI Components Pipeline
      ERROR: Build step failed with exception
      java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be cast to hudson.model.AbstractProject
      at hudson.plugins.parameterizedtrigger.TriggerBuilder.getProjectListAsString(TriggerBuilder.java:163)
      at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:121)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.Build$BuildExecution.build(Build.java:205)
      at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:381)
      Build step 'Trigger/call builds on other projects' marked build as failure
      Finished: FAILURE

      However, the child job is actually launched and succeeds.

            svanoort Sam Van Oort
            tonyfinn Tony Finn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: