jenkinsci / jenkinsci/git-plugin
[JENKINS-20562] Polling with Included Region only trigger a single job
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
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
---
Originally reported by efredlo, imported from: Polling with Included Region only trigger a single job
Raw content of original issue
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: SUCCESSWithout 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
- environment:
Jenkins 1.538, Git plugin 2.0
Contributor guide
Assessment
This issue has not been assessed yet.