Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
Jenkins LTS Latest
Windows 7 x64
Description
The git plugin currently offers several special rules on polling:
- Polling ignores commits from certain users
- Polling ignores commits from certain paths (Included/Excluded regions)
- Polling ignores commits with certain messages
- Branch specifier
For example:
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'UserExclusion', excludedUsers: 'dvader'], [$class: 'PathRestriction', excludedRegions: 'One/.*', includedRegions: 'Test/.*'], [$class: 'MessageExclusion', excludedMessage: '.\\[maven-release-plugin
].']], gitTool: 'Default', submoduleCfg: [], userRemoteConfigs: [[credentialsId: '...', url: 'ssh://git@bitbucket.org/test.git']]])
If a commit is committed to bitbucket.org/test.git, regardless of the user, location, branch or message, the step that includes the checkout will be run.
Similar issue has been reported in:
Attachments
Issue Links
- is duplicated by
-
JENKINS-36836 Git path polling ignores do not work in Pipeline jobs
-
- Closed
-
-
JENKINS-46059 Multiple Git polling causes build to be triggered when all commits are excluded
-
- Closed
-
- is related to
-
JENKINS-35988 Equivalent to polling commit exclusions for branch indexing
-
- Resolved
-
-
JENKINS-44611 Any way to restrict build for non-whitelisted users?
-
- Open
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is related to |
Assignee | Mark Waite [ markewaite ] |
Assignee | Jesse Glick [ jglick ] |
Workflow | JNJira [ 172856 ] | JNJira + In-Review [ 184814 ] |
Component/s | pipeline-general [ 21692 ] |
Component/s | workflow-plugin [ 18820 ] |
Link |
This issue is duplicated by |
Component/s | workflow-job-plugin [ 21716 ] | |
Component/s | workflow-scm-step-plugin [ 21717 ] | |
Component/s | pipeline [ 21692 ] |
Assignee | Jesse Glick [ jglick ] |
Attachment | image-2017-07-18-16-01-33-798.png [ 38933 ] |
Attachment | image-2017-07-18-16-02-28-808.png [ 38934 ] |
Attachment | image-2017-07-18-16-03-09-364.png [ 38935 ] |
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Attachment | image-2017-07-18-16-01-33-798.png [ 38933 ] |
Attachment | image-2017-07-18-16-02-28-808.png [ 38934 ] |
Link | This issue is related to JENKINS-44611 [ JENKINS-44611 ] |
Link |
This issue is duplicated by |
Issue Type | Improvement [ 4 ] | Bug [ 1 ] |
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Comment |
[ According to the comments above: [~jlehtnie] {quote}At least _Included/Excluded regions_ actually works ok if you also specify _Disable Remote Poll_, e.g. ... {quote} and [~killdash9] {quote}Yes. polling REGION inclusion/exclusion is working. The USER inclusion/exclusion is not working ... {quote} But REGION inclusion/exclusion is not working for me. Pipeline: {code:java} pipeline { agent any stages { stage("Checkout repo"){ steps { checkout([ $class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'DisableRemotePoll'], [$class: 'PathRestriction', excludedRegions: '', includedRegions: 'ggg/.*']], submoduleCfg: [], userRemoteConfigs: [[url: 'ssh://git@myrepo/testrepo.git']]]) } } stage("Next step"){ steps { sh 'echo "Testing"' } } } } {code} "Poll SCM" parameter is checked When I make changes to the repository (not in "ggg/" directory) job is triggered, although it should not. [Jenkins ver. 2.92|https://jenkins.io/] Git plugin 3.6.4 Can anyone help? ] |
Remote Link | This issue links to "CloudBees Internal OSS-1919 (Web Link)" [ 18511 ] |
Remote Link | This issue links to "CloudBees Internal OSS-1409 (Web Link)" [ 18708 ] |
Attachment | image-2018-06-28-18-09-30-343.png [ 43243 ] |
Attachment | image-2018-06-29-14-45-17-341.png [ 43260 ] |
Attachment | image-2018-06-29-15-36-13-977.png [ 43261 ] |
Assignee | SHAUL LAHAV [ shauli10 ] |
Attachment | pipeline-without-userexclusion-not-working.png [ 43588 ] | |
Attachment | pipeline-with-userexclusion-working.png [ 43589 ] |
Assignee | Shaul Lahav [ shauli10 ] | Mark Waite [ markewaite ] |
Assignee | Mark Waite [ markewaite ] |
Assignee | Kishore Babu Kavuru [ kishore_1269 ] |
Issue Type | Improvement [ 4 ] | Bug [ 1 ] |
Assignee | Kishore Babu Kavuru [ kishore_1269 ] | Mark Waite [ markewaite ] |
Assignee | Mark Waite [ markewaite ] |