DSL for enabling the Build periodically in jenkins

4k views Asked by At

I know how to do it using polling, with

triggers
{
  scm("H/15 * * * *")
}

How do I specify the trigger to Build periodically instead? enter image description here

1

There are 1 answers

0
badgerr On

Use cron to build periodically, as in:

triggers
{
  cron("H/15 * * * *")
}

This will build every 15 minutes regardless of whether there are SCM changes.