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

Equivalent to polling commit exclusions for branch indexing

    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

        1. multibranch_indexing_options.png
          multibranch_indexing_options.png
          182 kB
        2. non_multibranch_pipeline_filters.png
          non_multibranch_pipeline_filters.png
          147 kB
        3. screenshot-1.png
          screenshot-1.png
          2 kB
        4. screenshot-2.png
          screenshot-2.png
          95 kB
        5. workaround.txt
          0.9 kB

          Issue Links

            Activity

            Hide
            tknerr Torben Knerr added a comment -

            +1 to what Kevin Phillips mentioned above. "Polling ignores commits in certain paths" is available for "normal" Pipelines, just not for Multibranch Pipelines.

            Jesse Glick any chance the extension to scm-api you mentioned in https://issues.jenkins-ci.org/browse/JENKINS-35988?focusedCommentId=295310&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-295310 are on the roadmap?

            (in my case, it would even be for the bitbucket-branch-source-plugin....)

            Show
            tknerr Torben Knerr added a comment - +1 to what Kevin Phillips mentioned above. "Polling ignores commits in certain paths" is available for "normal" Pipelines, just not for Multibranch Pipelines. Jesse Glick any chance the extension to scm-api you mentioned in https://issues.jenkins-ci.org/browse/JENKINS-35988?focusedCommentId=295310&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-295310 are on the roadmap? (in my case, it would even be for the bitbucket-branch-source-plugin....)
            Show
            bitwiseman Liam Newman added a comment - - edited Joshua Noble Ignore by commiter: https://github.com/jenkinsci/ignore-committer-strategy-plugin Torben Knerr Andreas Sieferlinger Alexander Siniouguine Nathan Lowe Nate Faerber Kevin Phillips I think this does what is being requested here: https://wiki.jenkins.io/display/JENKINS/Multibranch+Build+Strategy+Extension+Plugin
            Hide
            bitwiseman Liam Newman added a comment -

            Resolving for now based on existing plugin. Please comment if not done.

            Show
            bitwiseman Liam Newman added a comment - Resolving for now based on existing plugin. Please comment if not done.
            Hide
            bryceman Bryce Schober added a comment -

            Liam Newman Note that the ignore-committer-strategy plugin doesn't support simple (non-email) subversion usernames, and at least superficially (at least in its UI wording) only supports Git. See also JENKINS-57474.

            Show
            bryceman Bryce Schober added a comment - Liam Newman Note that the ignore-committer-strategy plugin doesn't support simple (non-email) subversion usernames, and at least superficially (at least in its UI wording) only supports Git. See also JENKINS-57474 .
            Hide
            bitwiseman Liam Newman added a comment -

            Bryce Schober
            Thanks for filing a new JIRA for that issue.

            Show
            bitwiseman Liam Newman added a comment - Bryce Schober Thanks for filing a new JIRA for that issue.

              People

              • Assignee:
                bitwiseman Liam Newman
                Reporter:
                woland Alexander Siniouguine
              • Votes:
                32 Vote for this issue
                Watchers:
                39 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: