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

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


    • Similar Issues:


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

      The parameters are as follows:


      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.


          Issue Links


            tonyfinn Tony Finn created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is blocking JENKINS-26050 [ JENKINS-26050 ]
            jglick Jesse Glick made changes -
            Assignee huybrechts [ huybrechts ] Sam Van Oort [ svanoort ]
            svanoort Sam Van Oort made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            svanoort Sam Van Oort made changes -
            Remote Link This issue links to "Fix + added tests (Web Link)" [ 13137 ]
            svanoort Sam Van Oort made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 165121 ] JNJira + In-Review [ 197624 ]
            abayer Andrew Bayer made changes -
            Labels trigger workflow pipeline trigger workflow
            abayer Andrew Bayer made changes -
            Labels pipeline trigger workflow pipeline trigger


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


                • Created: