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

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

    XMLWordPrintable

Details

    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

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: