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

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

      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.

          [JENKINS-30040] Parameterised Trigger Plugin succeeds, then reports failure for workflow jobs.

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

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

              Created:
              Updated:
              Resolved: