Page History
YAML Schema
| Code Block | ||
|---|---|---|
|
||
resources: - name: |
Tags
name
Analphanumericstring (underscores are permitted) that identifies the resource.
type
Must beCronTriggerfor this resource type.
configuration
Specifies all configuration selections for the resource.
Tag |
Description |
Required/Optional | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
interval |
A
The
Examples
|
Required |
Environment Variables
WheneverCronTriggeris used in a step, a set of environment variables is automatically made available that you can use in your step.
Environment Variable |
Description |
|---|---|
res_ |
Name of the resource |
res_ |
The cron string that specifies the time(s) or interval |
Examples
The Pipelines DSL for this example is available inthis repositoryin theJFrogGitHub account.
| Code Block | ||
|---|---|---|
|
||
resources: - name: cron_trigger type: CronTrigger configuration: interval: '*0 */5 *?* **' # Every 5 minutes pipelines: - name: pipeline_scheduled_triggers steps: - name: step_1 type: Bash configuration: inputResources: - name: cron_trigger execution: onExecute: - printenv |
