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

Pipeline polling ignores special polling rules

    Details

    • Similar Issues:

      Description

      The git plugin currently offers several special rules on polling:

      1. Polling ignores commits from certain users
      2. Polling ignores commits from certain paths (Included/Excluded regions)
      3. Polling ignores commits with certain messages
      4. 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

            Activity

            Hide
            kmleinen Kyle Leinen added a comment - - edited

            From reading the original ticket notes along with the responses, I think this one is more in alignment with special rules around a single repository and not multiple repos.

            Show
            kmleinen Kyle Leinen added a comment - - edited From reading the original ticket notes along with the responses, I think this one is more in alignment with special rules around a single repository and not multiple repos.
            Hide
            jackiexiao Jackie Xiao added a comment -

            For multibranch pipeline jobs, are there any workarounds for Subversion with the 'checkout' step (includedRegions/excludedRegions)?

            Something like: 

            def scm = checkout scm: [

              $class:'SubversionSCM',
              extensions: [
                [$class: 'PathRestriction', excludedRegions: '', includedRegions: '.+\\.java']
              ]
            ]

            Show
            jackiexiao Jackie Xiao added a comment - For multibranch pipeline jobs, are there any workarounds for Subversion with the 'checkout' step (includedRegions/excludedRegions)? Something like:  def scm = checkout scm: [   $class:'SubversionSCM',   extensions: [     [$class: 'PathRestriction', excludedRegions: '', includedRegions: '.+\\.java']   ] ]
            Hide
            kishore_1269 Kishore Babu Kavuru added a comment - - edited

            Pipeline builds on every polling without any update in SCM..

            It seems if there any issue in the pipeline script, Then it is continuously building the pipeline as per polling.

            Show
            kishore_1269 Kishore Babu Kavuru added a comment - - edited Pipeline builds on every polling without any update in SCM.. It seems if there any issue in the pipeline script, Then it is continuously building the pipeline as per polling.
            Hide
            passarinho4 Szymon Seget added a comment -

            Hi, any updates? I need this feature to work. Kishore Babu Kavuru are you trying to fix it?

            Show
            passarinho4 Szymon Seget added a comment - Hi, any updates? I need this feature to work. Kishore Babu Kavuru are you trying to fix it?
            Hide
            carollyl Carol Lim added a comment - - edited

            Hi, does anyone able to get the excludedRegions and includedRegions to work in a pipeline job?

            Show
            carollyl Carol Lim added a comment - - edited Hi, does anyone able to get the excludedRegions and includedRegions to work in a pipeline job?

              People

              • Assignee:
                kishore_1269 Kishore Babu Kavuru
                Reporter:
                dvader Darth Vader
              • Votes:
                101 Vote for this issue
                Watchers:
                104 Start watching this issue

                Dates

                • Created:
                  Updated: