Hi Andrew, Yes the polling is specified in the JenkinsFile, which does come from SCM. I found that the polling ran fine after I had manually run the build once, as you intimated. So it’s working fine now.
I don’t know how one should now that it’s necessary to run the build manually once. However, I also realise that it is hard to know where to document that sort of thing. I do think it is confusing that the polling schedule can be specified in the GUI and/or in the script. Best regards David From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Bayer Sent: 24 May 2017 13:44 To: [email protected] Subject: Re: Declarative script: specify build trigger in GUI or script? A couple questions - is this being specified in a Jenkinsfile coming from SCM? Have you run the build once? A. On Mon, May 22, 2017 at 10:00 AM David Aldrich <[email protected]<mailto:[email protected]>> wrote: Hi, I'm confused about how to specify a build trigger for a declarative script. I want the job to be triggered by an SCM commit so I specified in my script: triggers { pollSCM('H/5 * * * *') } to poll every 5 minutes. However, the job is not being run even though commits have occurred. I notice that there is also a 'Build trigger' section in the GUI configuration for a branch of the job. Where should I specify the build trigger: in the GUI or in the script? Best regards David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:jenkinsci-users%[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e7db9b43810040769c28a1de2fefcee3%40EUX13SRV1.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdObeusrOokGgkvvUt2d9S_y6aTcZJ_F-od_jW9C17HhSAA%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdObeusrOokGgkvvUt2d9S_y6aTcZJ_F-od_jW9C17HhSAA%40mail.gmail.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. Click here<https://www.mailcontrol.com/sr/H2fAbGn7+grGX2PQPOmvUkjDae7bB5IgNzmu6Kijgf9af7hrOn9!9NOVeQtDWvKVeWQTHSOJ+731JTd!1uc+!w==> to report this email as spam. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/412356e71b984d0498ff060ada0d1d1a%40EUX13SRV1.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout.
