glab-schedule-create1
Create a new pipeline schedule.
Usage
glab schedule
create
[flags]
Overview
Create a new CI/CD pipeline schedule. The --cron, --description, and --ref flags are required:
•
|
|
|---|---|
•
|
|
•
|
|
Use --variable to add pipeline variables in key:value format. Pass --variable multiple times to add several variables.
By default, the schedule is created in the current project. Use --repo to target another project.
Options
--active[=true]
Whether or not the schedule is active.
--cron=""
Cron interval pattern.
--cronTimeZone="UTC"
Cron timezone.
--description=""
Description of the schedule.
--ref=""
Target branch or tag.
--variable=[]
Pass variables to schedule in the format :. Repeat flag for multiple variables.
Options inherited from parent commands
-h, --help[=false]
Show help for this command.
-R, --repo=""
Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.
Examples
# Create a scheduled pipeline that runs every hour glab schedule create --cron "0 * * * *" --description "Hourly build" --ref main # Create a schedule with pipeline variables glab schedule create --cron "0 0 * * *" --description "Daily build" --ref main --variable "foo:bar" --variable "baz:qux"
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.