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]> 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]. > 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdObeusrOokGgkvvUt2d9S_y6aTcZJ_F-od_jW9C17HhSAA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
