Schedule Pipelines using Triggers
You can schedule Pipeline executions using Cron-based Triggers.
For example, you can have a Pipeline run every Monday at 1AM. Harness will generate the Cron expression (
0 1 * * MON).
In this topic:
- Before You Begin
- Step 1: Add a Trigger to a Pipeline
- Step 2: Schedule the Trigger
- Step 3: Set Pipeline Input
- Step 4: Enable or Disable Trigger
- See Also
Before You Begin
Step 1: Add a Trigger to a Pipeline
Open your Harness Pipeline in Pipeline Studio.
Click New Trigger.
For Git-based Trigger types or CodeCommit, see Trigger Pipelines using Git Events.
In Trigger Overview, enter a name, description, and Tags for the Trigger.
Step 2: Schedule the Trigger
In Schedule, use the settings to schedule the Trigger.
When you edit a Cron Trigger later, you can type or paste in a Cron expression.
The Cron expression will be evaluated against UTC time.
Step 3: Set Pipeline Input
Pipelines often have Runtime Inputs like codebase branch names or artifact versions and tags.
Provide values for the inputs. You can also use Input Sets.
Click Create Trigger.
The Trigger is now added to the Triggers page.
Step 4: Enable or Disable Trigger
Use the Enable setting to turn the Trigger on and off.
That's it. Your Pipeline will run when the Cron expression equals the current time.