Retrieve Metadata from Circle CI BuildsSource:
Query information about pipelines, workflows or jobs on
print() method for these functions returns the respective
To inspect the details of each pipeline, save the return value in an object
and inspect the respective sub-lists.
If no pipeline or workflow is supplied to
the ten most recent pipelines/jobs are queried, respectively.
get_pipelines( repo = github_info()$name, user = github_info()$owner$login, limit = 30, vcs_type = "gh", api_version = "v2" ) get_workflows( pipeline_id = NULL, repo = github_info()$name, user = github_info()$owner$login ) get_jobs( workflow_id = NULL, repo = github_info()$name, user = github_info()$owner$login, vcs_type = "gh" ) retry_workflow(workflow_id = NULL)
The repository slug to use. Must follow the "
The username for the repository. By default queried using
How many builds should be returned? Maximum allowed by Circle is 30.
The version control system to use. Defaults to "gh" (Github).
A character string specifying the Circle CI API version. This usually does not need to be changed by the user.
A Circle CI pipeline ID.
A Circle CI workflow ID.
An object of class
circle_collection containing list
information on the queried Circle CI pipelines/workflows/jobs.
get_*() functions query information about the respective
build level details (pipeline - workflow - job),
users rerun a specific workflow.
By default, the workflow from the most recent pipeline will be rerun if
no pipeline ID was supplied.