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.

          Code changed in jenkins
          User: Sam Van Oort
          Path:
          src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/f5c1ff70557653a486735743eb5f9598723e3b43
          Log:
          Merge branch 'master' of https://github.com/tonyfinn/parameterized-trigger-plugin into JENKINS-30040-tests

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sam Van Oort Path: src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/f5c1ff70557653a486735743eb5f9598723e3b43 Log: Merge branch 'master' of https://github.com/tonyfinn/parameterized-trigger-plugin into JENKINS-30040 -tests

          Code changed in jenkins
          User: Sam Van Oort
          Path:
          src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java
          src/test/java/hudson/plugins/parameterizedtrigger/test/TriggerBuilderTest.java
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/bbccd61f61a30a47cb508c73dc1c3fe5d9bb1e01
          Log:
          Add test for JENKINS-30040 issue with workflow job logging on nonblocking build step trigger

          Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/274194f939ec^...bbccd61f61a3

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sam Van Oort Path: src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java src/test/java/hudson/plugins/parameterizedtrigger/test/TriggerBuilderTest.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/bbccd61f61a30a47cb508c73dc1c3fe5d9bb1e01 Log: Add test for JENKINS-30040 issue with workflow job logging on nonblocking build step trigger Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/274194f939ec ^...bbccd61f61a3

          Sam Van Oort added a comment -

          Fix is in PR#90 (thanks!) but this PR includes that plus tests.
          If reviewed and merged, both will land together.

          Sam Van Oort added a comment - Fix is in PR#90 (thanks!) but this PR includes that plus tests. If reviewed and merged, both will land together.

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java
          src/test/java/hudson/plugins/parameterizedtrigger/test/TriggerBuilderTest.java
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/0e680b53b97f34289a2689a4f76dbb3c7e389b03
          Log:
          Merge pull request #92 from jenkinsci/JENKINS-30040-tests

          JENKINS-30040 Logging exception running triggering nonblocking builds

          Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/489867169ef9...0e680b53b97f

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: src/main/java/hudson/plugins/parameterizedtrigger/TriggerBuilder.java src/test/java/hudson/plugins/parameterizedtrigger/test/TriggerBuilderTest.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/0e680b53b97f34289a2689a4f76dbb3c7e389b03 Log: Merge pull request #92 from jenkinsci/ JENKINS-30040 -tests JENKINS-30040 Logging exception running triggering nonblocking builds Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/489867169ef9...0e680b53b97f

          Sam Van Oort added a comment -

          Released with 2.29, including tests

          Sam Van Oort added a comment - Released with 2.29, including tests

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

              Created:
              Updated:
              Resolved: