Skip to main content

project_pipeline_schedules

Gets or lists a project_pipeline_schedules resource.

Overview​

Nameproject_pipeline_schedules
TypeResource
Idgitlab.ci.project_pipeline_schedules

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the pipeline schedule.
activebooleanIndicates if the pipeline schedule is active.
created_atstringTimestamp of when the pipeline schedule was created.
cronstringCron notation for the schedule.
cron_timezonestringTimezone for the pipeline schedule.
descriptionstringDescription of the pipeline schedule.
edit_pathstringEdit path of the pipeline schedule.
for_tagbooleanIndicates if a pipelines schedule belongs to a tag.
next_run_atstringTime when the next pipeline will run.
projectobjectProject identity (id, full_path, name)
real_next_runstringTime when the next pipeline will run.
refstringRef of the pipeline schedule.
ref_for_displaystringGit ref for the pipeline schedule.
ref_pathstringPath to the ref that triggered the pipeline.
updated_atstringTimestamp of when the pipeline schedule was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfull_path, hostsort, statusPipeline schedules of the project. This field can only be resolved for one project per request. Generated from the GitLab GraphQL schema field Project.pipelineSchedules (connection of PipelineSchedule nodes).

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
full_pathstringFull path of the project, for example gitlab-org/gitlab
hoststringGitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST)
sortstringList pipeline schedules by sort order. Default is id_desc.
statusstringFilter pipeline schedules by active status.

SELECT examples​

Pipeline schedules of the project. This field can only be resolved for one project per request. Generated from the GitLab GraphQL schema field Project.pipelineSchedules (connection of PipelineSchedule nodes).

SELECT
id,
active,
created_at,
cron,
cron_timezone,
description,
edit_path,
for_tag,
next_run_at,
project,
real_next_run,
ref,
ref_for_display,
ref_path,
updated_at
FROM gitlab.ci.project_pipeline_schedules
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND sort = '{{ sort }}'
AND status = '{{ status }}'
;