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

Synchronous SCM polling in dependencies order

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • other
    • None
    • Platform: All, OS: All

      Introduce a new feature to be able to run SCM polling in a synchronous way in
      the order of the dependencies.

      See
      http://www.nabble.com/Commit-spanning-multiple-interdependant-projects-tf3870814.html#a10966678

          [JENKINS-806] Synchronous SCM polling in dependencies order

          jbq created issue -

          jbq added a comment -

          Created an attachment (id=88)
          Proposed patch

          jbq added a comment - Created an attachment (id=88) Proposed patch

          jbq added a comment -

          Notes on the patch:

          • SCMTrigger cron spec is ignored when sync polling is set to true
          • Requires an API change: Trigger.run() becomes public
          • Creates a Thread to avoid blocking Cron, but that needs to be improved

          jbq added a comment - Notes on the patch: SCMTrigger cron spec is ignored when sync polling is set to true Requires an API change: Trigger.run() becomes public Creates a Thread to avoid blocking Cron, but that needs to be improved

          jbq added a comment -

          Created an attachment (id=89)
          Updated patch with better algorithm for computing list of projects in the order of dependencies. Still need to implement threading to poll for changes in the background.

          jbq added a comment - Created an attachment (id=89) Updated patch with better algorithm for computing list of projects in the order of dependencies. Still need to implement threading to poll for changes in the background.

          jbq added a comment -

          Created an attachment (id=90)
          Updated patch

          jbq added a comment - Created an attachment (id=90) Updated patch

          jbq added a comment -

          In the latest patch:

          • synchronousPolling setting in SCMTrigger instead of Hudson
          • use SCMTrigger executor to poll for changes
          • don't process SCMTrigger twice

          Still left to do:

          • Integrate with UI: allow to set synchronousPolling and to specify a global
            crontab spec

          jbq added a comment - In the latest patch: synchronousPolling setting in SCMTrigger instead of Hudson use SCMTrigger executor to poll for changes don't process SCMTrigger twice Still left to do: Integrate with UI: allow to set synchronousPolling and to specify a global crontab spec

          jbq added a comment -

          Assigning to me

          jbq added a comment - Assigning to me

          bwestrich added a comment -

          Created an attachment (id=143)
          patch that implements synchronous polling when #executors=1

          bwestrich added a comment - Created an attachment (id=143) patch that implements synchronous polling when #executors=1

          bwestrich added a comment -

          add myself as a cc

          bwestrich added a comment - add myself as a cc

          bwestrich added a comment -

          reassigned this issue to me per this note from Jean Baptiste:

          > Dear Brian,
          >
          > First, feel free to assign the issue to yourself. I can't afford to
          > work on this anymore as I'm not using Hudson in my current job.

          bwestrich added a comment - reassigned this issue to me per this note from Jean Baptiste: > Dear Brian, > > First, feel free to assign the issue to yourself. I can't afford to > work on this anymore as I'm not using Hudson in my current job.

            bwestrich bwestrich
            jbq jbq
            Votes:
            14 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: