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

Poll SCM results in a Pipeline run every interval (unnecessarily)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      My Jenkinsfile includes an SCMTrigger pipelineTrigger for polling SCM for changes:

      properties([
          [$class: 'jenkins.model.BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '96']],
          pipelineTriggers([[$class:"SCMTrigger", scmpoll_spec:"H/10 * * * *"]]),
      ])
      

      This repository is used via a GitHub Organization Folder on ci.jenkins.io, and seems to believe that changes are being made every ten minutes (per the scmpoll_spec above, despite no such changes being made.

      See screenshots for more context

      This results in an aggressive waste of resources in our Jenkins environment

        Attachments

        1. scmpoll_136.png
          scmpoll_136.png
          43 kB
        2. scmpoll_137.png
          scmpoll_137.png
          43 kB
        3. scmpoll_history.png
          scmpoll_history.png
          26 kB

          Issue Links

            Activity

              People

              Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              rtyler R. Tyler Croy
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: