Jenkins · Declarative pipeline basics

Run on a schedule

Trigger builds by cron or by polling the repository. H spreads the load.

triggers {
  cron('H 2 * * 1-5')
  pollSCM('H/15 * * * *')
}

Official Jenkins documentation

More declarative pipeline basics commands

All declarative pipeline basics commands · Jenkins cheatsheet

Was this page helpful?