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

Polling with Included Region only trigger a single job

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 1.538, Git plugin 2.0

      Two jobs that trigger on git polling with the same repo, refspec & branch start parallel builds as expected.

      But with "Polling... Included Regions: sameRootDir/.*" added to both jobs, only one will be triggered and the other one is ignored.

      With Included Regions, one job executes:
      Nov 13, 2013 1:26:02 PM hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
      INFO: Triggering the polling of FL_TriggTest
      Nov 13, 2013 1:26:02 PM hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
      INFO: Triggering the polling of FL_TriggTest2
      Nov 13, 2013 1:26:03 PM hudson.triggers.SCMTrigger$Runner run
      INFO: SCM changes detected in FL_TriggTest. Triggering #7
      Nov 13, 2013 1:26:11 PM hudson.model.Run execute
      INFO: FL_TriggTest #7 main build action completed: SUCCESS

      Without Included Regions, both job executes:
      Nov 13, 2013 1:33:51 PM hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
      INFO: Triggering the polling of FL_TriggTest
      Nov 13, 2013 1:33:51 PM hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
      INFO: Triggering the polling of FL_TriggTest2
      Nov 13, 2013 1:33:51 PM hudson.triggers.SCMTrigger$Runner run
      INFO: SCM changes detected in FL_TriggTest2. Triggering #1
      Nov 13, 2013 1:33:51 PM hudson.triggers.SCMTrigger$Runner run
      INFO: SCM changes detected in FL_TriggTest. Triggering #8
      Nov 13, 2013 1:33:57 PM hudson.model.Run execute
      INFO: FL_TriggTest #8 main build action completed: SUCCESS
      Nov 13, 2013 1:33:57 PM hudson.model.Run execute
      INFO: FL_TriggTest2 #1 main build action completed: SUCCESS

          [JENKINS-20562] Polling with Included Region only trigger a single job

          Fredric Lonngren added a comment - - edited

          I have tried this again with Jenkins ver. 1.590 Git plugin 2.3 and now it works. Both jobs with the same include regions trigger and builds as expected. This issue can be closed.

          Nov 21, 2014 10:42:12 AM INFO hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
          Triggering the polling of FL_TriggTest
          Nov 21, 2014 10:42:12 AM INFO hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
          Triggering the polling of FL_TriggTest2
          Nov 21, 2014 10:42:12 AM INFO hudson.triggers.SCMTrigger$Runner run
          SCM changes detected in FL_TriggTest. Triggering  #17
          Nov 21, 2014 10:42:13 AM INFO hudson.triggers.SCMTrigger$Runner run
          SCM changes detected in FL_TriggTest2. Triggering  #11
          Nov 21, 2014 10:42:22 AM INFO hudson.model.Run execute
          FL_TriggTest2 #11 main build action completed: SUCCESS
          Nov 21, 2014 10:42:22 AM INFO hudson.model.Run execute
          FL_TriggTest #17 main build action completed: SUCCESS
          

          Fredric Lonngren added a comment - - edited I have tried this again with Jenkins ver. 1.590 Git plugin 2.3 and now it works. Both jobs with the same include regions trigger and builds as expected. This issue can be closed. Nov 21, 2014 10:42:12 AM INFO hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit Triggering the polling of FL_TriggTest Nov 21, 2014 10:42:12 AM INFO hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit Triggering the polling of FL_TriggTest2 Nov 21, 2014 10:42:12 AM INFO hudson.triggers.SCMTrigger$Runner run SCM changes detected in FL_TriggTest. Triggering #17 Nov 21, 2014 10:42:13 AM INFO hudson.triggers.SCMTrigger$Runner run SCM changes detected in FL_TriggTest2. Triggering #11 Nov 21, 2014 10:42:22 AM INFO hudson.model.Run execute FL_TriggTest2 #11 main build action completed: SUCCESS Nov 21, 2014 10:42:22 AM INFO hudson.model.Run execute FL_TriggTest #17 main build action completed: SUCCESS

            Unassigned Unassigned
            efredlo Fredric Lonngren
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: