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

parameterized-trigger broken configure UI on Jenkins >=2.264

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      parameterized-trigger-2.40

      Description

      New freestyle job
      Add build step Trigger/ call builds on other projects

      Add a condition

      Save

      Open the job configuration again, it'll be broken

        Attachments

          Issue Links

            Activity

            Show
            oleg_nenashev Oleg Nenashev added a comment - https://github.com/jenkinsci/parameterized-trigger-plugin/releases/tag/parameterized-trigger-2.40
            Hide
            camilla camilla ke added a comment - - edited

            Jonas Ströbele

            Hi,

            There is a side-effect on 2.40 (pre-release)

            Jenkins can not set build result if Block until the triggered projects finish their builds checked, causing whole job failed.
            issue reported: JENKINS-64538

             
            Jenkins version: Jenkins 2.273
             
            Steps to reproduce:
            1. Create a free style project
            2. Add a post-build action  >> Add "Execute script" >> Add "post build step" >> Add "build step" >> trigger/call build on other project
            3. Trigger any project which will return SUCCESS and check block until triggered project finish their builds
            4. Build the free style project
             
            NOTE: if the downstream job return FAILURE, there is no exception.
            Error Console Log:
            ...
            [PostBuildScript] - [INFO] Executing post build scripts.
            Run condition [Always] enabling perform for step [Trigger/call builds on other projects]
            Waiting for the completion of test-pipeline
            test-pipeline #482 started.
            test-pipeline #482 completed. Result was SUCCESS
            ERROR: Build step failed with exception

            java.lang.NullPointerException
            at hudson.model.Run.setResult(Run.java:503)
            at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:154)
            at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:112)
            at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:156)
            at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:107)
            at org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder.perform(SingleConditionalBuilder.java:108)
            at org.jenkinsci.plugins.postbuildscript.processor.Processor.processBuildSteps(Processor.java:180)
            at org.jenkinsci.plugins.postbuildscript.processor.Processor.processScripts(Processor.java:91)
            at org.jenkinsci.plugins.postbuildscript.processor.Processor.process(Processor.java:79)
            at org.jenkinsci.plugins.postbuildscript.processor.Processor.process(Processor.java:73)
            at org.jenkinsci.plugins.postbuildscript.PostBuildScript.perform(PostBuildScript.java:116)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803)
            at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752)
            at hudson.model.Build$BuildExecution.post2(Build.java:177)
            at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:697)
            at hudson.model.Run.execute(Run.java:1932)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:97)
            at hudson.model.Executor.run(Executor.java:429)
            Build step 'Execute scripts' marked build as failure

            Show
            camilla camilla ke added a comment - - edited Jonas Ströbele Hi, There is a side-effect on 2.40 (pre-release) Jenkins can not set build result if  Block until the triggered projects finish their builds checked, causing whole job failed. issue reported:  JENKINS-64538   Jenkins version:  Jenkins 2.273   Steps to reproduce: 1. Create a free style project 2. Add a post-build action  >> Add "Execute script" >> Add "post build step" >> Add "build step" >> trigger/call build on other project 3. Trigger any project which will return SUCCESS and check block until triggered project finish their builds 4. Build the free style project   NOTE: if the downstream job return FAILURE , there is no exception. Error Console Log: ... [PostBuildScript] - [INFO] Executing post build scripts. Run condition [Always] enabling perform for step [Trigger/call builds on other projects] Waiting for the completion of test-pipeline test-pipeline #482 started. test-pipeline #482 completed. Result was SUCCESS ERROR: Build step failed with exception java.lang.NullPointerException at hudson.model.Run.setResult(Run.java:503) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:154) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:112) at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:156) at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:107) at org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder.perform(SingleConditionalBuilder.java:108) at org.jenkinsci.plugins.postbuildscript.processor.Processor.processBuildSteps(Processor.java:180) at org.jenkinsci.plugins.postbuildscript.processor.Processor.processScripts(Processor.java:91) at org.jenkinsci.plugins.postbuildscript.processor.Processor.process(Processor.java:79) at org.jenkinsci.plugins.postbuildscript.processor.Processor.process(Processor.java:73) at org.jenkinsci.plugins.postbuildscript.PostBuildScript.perform(PostBuildScript.java:116) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752) at hudson.model.Build$BuildExecution.post2(Build.java:177) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:697) at hudson.model.Run.execute(Run.java:1932) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Build step 'Execute scripts' marked build as failure
            Hide
            jstr Jonas Ströbele added a comment -

            Tim Jacomb Tried the pre-release version on our Jenkins, can confirm it solves the issue completely for both cases I made a screenshot for. Visuals are good, and build steps are responsive again (drag/drop).

            Thanks a lot for the quick work!

            I'll keep an eye out for any similar glitches on other build projects, but those two were the ones I was aware of.

            Show
            jstr Jonas Ströbele added a comment - Tim Jacomb Tried the pre-release version on our Jenkins, can confirm it solves the issue completely for both cases I made a screenshot for. Visuals are good, and build steps are responsive again (drag/drop). Thanks a lot for the quick work! I'll keep an eye out for any similar glitches on other build projects, but those two were the ones I was aware of.
            Show
            timja Tim Jacomb added a comment - Jonas Ströbele please try the pre-release version at https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/parameterized-trigger/2.40-rc561.7ebe4c893148/parameterized-trigger-2.40-rc561.7ebe4c893148.hpi

              People

              Assignee:
              olamy Olivier Lamy
              Reporter:
              timja Tim Jacomb
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: