Reputation: 1523
Is it possible to have this section from the Jenkins UI into a Jenkinsfile instead?
Upvotes: 2
Views: 1541
Reputation: 450
You can use pollSCM trigger.
Eg: triggers { pollSCM('H */4 * * 1-5') }
Doc: https://jenkins.io/doc/book/pipeline/syntax/
Upvotes: 2