简体   繁体   中英

How to schedule jenkins job to run with seconds unit?

Jenkins job trigger cron expression format is ? ? ? ? ?. It cannot possible set the seconds unit.

But I want schedule seconds unit, like run at everyday 15:20:10. Because there is a job with cron(0 12 * * *) and every minute job, and these two job must not to run simultaneously.

How can I do that?

Thanks for help.

you can have several options to do that :

  1. use lock plugin to wait until your first job run will finish and only than trigger it.
  2. use the Quiet period option in the Job configuration , add 10 seconds so the job will sleep 10 seconds after it trigger.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM