-
Notifications
You must be signed in to change notification settings - Fork 209
[Schedule Type] cron
Olivier Clavel edited this page Nov 25, 2019
·
1 revision
Schedule a task to be run according to a cron schedule
schedule_type: cron # This is the default
cron:
type: string
format: "s m h DoM M DoW Y"
Description of cron field format:
- s: seconds - 0..59
- m: minutes - 0..59
- h: hours - 0..23. Note for North Americans: this a 24 hours format
- DoM: day of the month - 0..31. Set this to
?
for "no specific value" - M: month - 1..12 or JAN..DEC
- DoW: day of the week - 1..7 or SUN..SAT. Note for Europeans: 1 is Sunday. Set this to
?
for "no specific value" - Y: year (4 digit). This field is optional.
nexus_scheduled_tasks:
- name: "Execute custom script at 1:10:00 every working day"
typeId: script
taskProperties:
language: groovy
source: "# Groovy script content"
task_alert_email: [email protected]
schedule_type: cron
cron: "0 10 1 ? * 2-6"