-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
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
}
}
So this'll probably end up as checkoutOptions(enablePolling: false, includeInChangelogs:false) - might as well provide both of those flags in one place. I'll probably bang this out within the next week.