Skip to content

[Task Type] Admin | Execute script

Olivier Clavel edited this page Nov 25, 2019 · 2 revisions

Related settings description

Name of task type (in GUI): Admin - Execute script
typeId: script
taskProperties:
  language:
    type: string
    description: Script language (no choice actually only groovy available)
    default: groovy
  source:
    type: string
    description: Content of the script

Example usage (with manual schedule type)

nexus_scheduled_tasks:
  - name: Execute custom script
    typeId: script
    taskProperties:
      language: groovy
      source: "# Groovy script content"
    task_alert_email: alert@somewhere.info
    schedule_type: manual