builds | R Documentation |
Query information about pipelines, workflows or jobs on
Circle CI.
The S3 print()
method for these functions returns the respective
pipeline IDs.
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 get_workflows()
/get_jobs()
,
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)
repo |
|
user |
|
limit |
|
vcs_type |
|
api_version |
|
pipeline_id |
|
workflow_id |
|
While the get_*()
functions query information about the respective
build level details (pipeline - workflow - job), retry_workflow()
let's
users rerun a specific workflow.
By default, the workflow from the most recent pipeline will be rerun if
no pipeline ID was supplied.
An object of class circle_collection
containing list
information on the queried Circle CI pipelines/workflows/jobs.
## Not run:
pipelines <- get_pipelines()
workflows <- get_workflows()
jobs <- get_jobs()
# rerun most recent workflow
retry_workflow()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.