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

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

      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

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

          [JENKINS-40722] Poll SCM results in a Pipeline run every interval (unnecessarily)

          R. Tyler Croy created issue -
          Stephen Connolly made changes -
          Resolution New: Won't Do [ 10001 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Stephen Connolly made changes -
          Link New: This issue relates to JENKINS-41072 [ JENKINS-41072 ]
          Stephen Connolly made changes -
          Link New: This issue relates to JENKINS-41073 [ JENKINS-41073 ]
          Patrick Wolf made changes -
          Link New: This issue is related to JENKINS-41074 [ JENKINS-41074 ]

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

              Created:
              Updated:
              Resolved: