Sarath Mohan J
Sarath Mohan J

Reputation: 21

DSL for enabling the Build periodically in jenkins

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

Upvotes: 2

Views: 4184

Answers (1)

badgerr
badgerr

Reputation: 7982

Use cron to build periodically, as in:

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

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

Upvotes: 5

Related Questions