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

Declarative option for disableDefaultCheckoutPolling()

XMLWordPrintable

      I have a use case that stores our job definition in GitHub for auto-job population/source controlled jobs, but the source code to pull is from another SCM (Perforce). Perforce only supports polled triggering (Perforce Triggered Builds just fire off polling). As history ages out, this can cause bursts of infinite triggering when git-plugin thinks there are new changes. I'd like to be able to disable polling for this default repository.

       

      The current workaround is:

      pipeline {
          agent any
          options {
              skipDefaultCheckout()
          }
          
          steps {
              checkout poll: false, scm: scm
          }
      }

            Unassigned Unassigned
            rpocase Robby Pocase
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: