Details
-
Type:
New Feature
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: branch-api-plugin
-
Labels:None
-
Environment:Windows
-
Similar Issues:
Description
I have an organizational project configured which scans repositories for jenkinsfile. One of the repository (https://github.com/VirtoCommerce/vc-module-jenkinssample) has a following Jenkinsfile defined:
node { stage 'Checkout' checkout([ $class: 'GitSCM', branches: [[name: '*/master']], extensions: [[ $class: 'PathRestriction', excludedRegions: 'CommonAssemblyInfo\\.cs', includedRegions: '' ]], userRemoteConfigs: [[ url: 'git@github.com:VirtoCommerce/vc-module-jenkinssample.git']]]) }
As you might see I have an excluded region defined, so changes made to CommonAssemblyInfo.cs don't trigger any builds. However "Branch Indexing" still forces the job to build when I commit changes to "CommonAssemblyInfo.cs". How can I prevent this?
Btw, the above script works fine in a separate/individual Pipeline Job.
Attachments
Issue Links
- is duplicated by
-
JENKINS-44371 MultibranchPipeline - Ignores SVN Properties
-
- Resolved
-
-
JENKINS-57164 Allow Users to include/exclude paths from Multibranch SCM Triggering
-
- Resolved
-
-
JENKINS-43842 Conditional build trigger on branch indexing
-
- Closed
-
- is related to
-
JENKINS-57474 Ignore committer doesn't work for non-email subversion users
-
- Open
-
-
JENKINS-36195 Pipeline polling ignores special polling rules
-
- Open
-
- relates to
-
JENKINS-27092 create a step to abort the build with a NOT_BUILT status
-
- Reopened
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Description |
I have an organizational project configured which scans repositories for jenkinsfile. One of the repository (https://github.com/VirtoCommerce/vc-module-jenkinssample) has a following Jenkinsfile defined: node { stage 'Checkout' checkout([ $class: 'GitSCM', branches: [[name: '*/master']], extensions: [[ $class: 'PathRestriction', excludedRegions: 'CommonAssemblyInfo\\.cs', includedRegions: '' ]], userRemoteConfigs: [[ url: 'git@github.com:VirtoCommerce/vc-module-jenkinssample.git']]]) } As you might see I have an excluded region defined, so changes made to CommonAssemblyInfo.cs don't trigger any builds. However "Branch Indexing" still forces the job to build when I commit changes to "CommonAssemblyInfo.cs". How can I prevent this? Btw, the above script works fine in a separate/individual Pipeline Job. |
I have an organizational project configured which scans repositories for jenkinsfile. One of the repository (https://github.com/VirtoCommerce/vc-module-jenkinssample) has a following Jenkinsfile defined: {{ node { stage 'Checkout' checkout([ $class: 'GitSCM', branches: [[name: '*/master']], extensions: [[ $class: 'PathRestriction', excludedRegions: 'CommonAssemblyInfo\\.cs', includedRegions: '' ]], userRemoteConfigs: [[ url: 'git@github.com:VirtoCommerce/vc-module-jenkinssample.git']]]) } }} As you might see I have an excluded region defined, so changes made to CommonAssemblyInfo.cs don't trigger any builds. However "Branch Indexing" still forces the job to build when I commit changes to "CommonAssemblyInfo.cs". How can I prevent this? Btw, the above script works fine in a separate/individual Pipeline Job. |
Assignee | Mark Waite [ markewaite ] |
Component/s | github-organization-folder-plugin [ 21427 ] | |
Component/s | git-plugin [ 15543 ] |
Component/s | workflow-multibranch-plugin [ 21465 ] |
Component/s | workflow-multibranch-plugin [ 21465 ] |
Link | This issue is related to JENKINS-36195 [ JENKINS-36195 ] |
Workflow | JNJira [ 172625 ] | JNJira + In-Review [ 184698 ] |
Description |
I have an organizational project configured which scans repositories for jenkinsfile. One of the repository (https://github.com/VirtoCommerce/vc-module-jenkinssample) has a following Jenkinsfile defined: {{ node { stage 'Checkout' checkout([ $class: 'GitSCM', branches: [[name: '*/master']], extensions: [[ $class: 'PathRestriction', excludedRegions: 'CommonAssemblyInfo\\.cs', includedRegions: '' ]], userRemoteConfigs: [[ url: 'git@github.com:VirtoCommerce/vc-module-jenkinssample.git']]]) } }} As you might see I have an excluded region defined, so changes made to CommonAssemblyInfo.cs don't trigger any builds. However "Branch Indexing" still forces the job to build when I commit changes to "CommonAssemblyInfo.cs". How can I prevent this? Btw, the above script works fine in a separate/individual Pipeline Job. |
I have an organizational project configured which scans repositories for jenkinsfile. One of the repository (https://github.com/VirtoCommerce/vc-module-jenkinssample) has a following Jenkinsfile defined: {code} node { stage 'Checkout' checkout([ $class: 'GitSCM', branches: [[name: '*/master']], extensions: [[ $class: 'PathRestriction', excludedRegions: 'CommonAssemblyInfo\\.cs', includedRegions: '' ]], userRemoteConfigs: [[ url: 'git@github.com:VirtoCommerce/vc-module-jenkinssample.git']]]) } {code} As you might see I have an excluded region defined, so changes made to CommonAssemblyInfo.cs don't trigger any builds. However "Branch Indexing" still forces the job to build when I commit changes to "CommonAssemblyInfo.cs". How can I prevent this? Btw, the above script works fine in a separate/individual Pipeline Job. |
Component/s | branch-api-plugin [ 18621 ] | |
Component/s | github-organization-folder-plugin [ 21427 ] | |
Component/s | workflow-multibranch-plugin [ 21465 ] |
Component/s | github-branch-source-plugin [ 20858 ] | |
Component/s | branch-api-plugin [ 18621 ] | |
Issue Type | Improvement [ 4 ] | New Feature [ 2 ] |
Component/s | branch-api-plugin [ 18621 ] | |
Component/s | github-branch-source-plugin [ 20858 ] |
Summary | Organization job "Branch Indexing" ignores excluded regions defined in jenkinsfile | Equivalent to polling commit exclusions for branch indexing |
Attachment | workaround.txt [ 38191 ] |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |
Remote Link | This issue links to "CloudBees-internal mirror (Web Link)" [ 20187 ] |
Link | This issue relates to JENKINS-27092 [ JENKINS-27092 ] |
Remote Link | This issue links to "git PR 573 (Web Link)" [ 20188 ] |
Attachment | non_multibranch_pipeline_filters.png [ 41757 ] |
Attachment | multibranch_indexing_options.png [ 41758 ] |
Attachment | screenshot-1.png [ 45330 ] |
Attachment | screenshot-2.png [ 45331 ] |
Assignee | Liam Newman [ bitwiseman ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Link |
This issue is duplicated by |
Link | This issue is related to JENKINS-57474 [ JENKINS-57474 ] |