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

Parameterized Trigger hangs waiting for downstream job

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins 2.73.2, Parameterized Trigger Plugin 2.35.1, Promoted Builds 2.29.1
    • Similar Issues:

      Description

      We use Parameterized Trigger to launch downstream jobs from a Promoted Builds promotion. The problem is that if the downstream job queues then the Promotion job hangs waiting for it. The stack trace is:

      java.lang.Object.wait(Native Method)
      java.lang.Object.wait(Object.java:502)
      hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:73)
      hudson.plugins.parameterizedtrigger.BuildTrigger.perform(BuildTrigger.java:111)
      hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:425)
      hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:367)
      hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:496)
      hudson.model.Run.execute(Run.java:1737)
      hudson.model.Run.run(Run.java:1694)
      hudson.plugins.promoted_builds.Promotion.run(Promotion.java:290)
      hudson.model.ResourceController.execute(ResourceController.java:97)
      hudson.model.Executor.run(Executor.java:421)
      

      I think it relates to this line in BuildTrigger.java.

      abstractBuild = (AbstractBuild) future.get();
      

      It was added in https://github.com/jenkinsci/parameterized-trigger-plugin/commit/a6de43746b11ae2113405f56203066af42abb124#diff-124e73168bc42ab0df38c0656f9aec8b

      We have downgraded the Parameterized Trigger plugin to 2.32 (prior to the above commit) resolves the issue, but there are security warnings for the older version so we'd like to be able to upgrade again.


      To replicate, use Promoted Builds to trigger a long running downstream job. After the first or second promotion you should see the promotion job hang waiting on the downstream job.

       

        Attachments

          Activity

          Hide
          gd185052 G D added a comment - - edited

          Can confirm we running v2.35.2 and are experiencing the same problem.

          Show
          gd185052 G D added a comment - - edited Can confirm we running  v2.35.2 and are experiencing the same problem.
          Hide
          dadbod9000 Travis Neal added a comment -

          Was this ever fixed for you guys? we're running into the same issues. We tried downgrading to 2.32 but this is lower than required for the Git plugin (which requires 2.33, which is the breaking version) downgrading the Git plugin to allow the parameterized trigger plugin to work correctly would mean removing core functionality from our Jenkins implementation.

          Show
          dadbod9000 Travis Neal added a comment - Was this ever fixed for you guys? we're running into the same issues. We tried downgrading to 2.32 but this is lower than required for the Git plugin (which requires 2.33, which is the breaking version) downgrading the Git plugin to allow the parameterized trigger plugin to work correctly would mean removing core functionality from our Jenkins implementation.
          Hide
          mark_h Mark Hermon added a comment -

          We were never able to get it working, we've since switched to kicking off the build from our normal jobs instead of from the Promoted Builds plugin.

          Show
          mark_h Mark Hermon added a comment - We were never able to get it working, we've since switched to kicking off the build from our normal jobs instead of from the Promoted Builds plugin.
          Hide
          rw250155 Reiner Wirtz added a comment -

           We transformed most of our jenkins jobs to jenkins pipeline.

          We never got a problem starting another jenkins job from piepeline.

           

          Show
          rw250155 Reiner Wirtz added a comment -  We transformed most of our jenkins jobs to jenkins pipeline. We never got a problem starting another jenkins job from piepeline.  

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              mark_h Mark Hermon
            • Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: