-
Notifications
You must be signed in to change notification settings - Fork 209
[Schedule Type] once
Olivier Clavel edited this page Nov 25, 2019
·
1 revision
Schedule a task to be run once at a specified date (defaults to now)
schedule_type: once
start_date_time:
type: date
format: "yyyy-MM-dd'T'HH:mm:ss"
Important note: Date must be enclosed in quotes in the configuration file
nexus_scheduled_tasks:
- name: Declare and execute custom script now
typeId: script
taskProperties:
language: groovy
source: "# Groovy script content"
task_alert_email: alert@somewhere.info
schedule_type: once
- name: Declare custom script now, play it once at later date
typeId: script
taskProperties:
language: groovy
source: "# Groovy script content"
task_alert_email: alert@somewhere.info
schedule_type: once
start_date_time: "2050-12-31T00:00:00"