travis_get_builds: Travis CI builds

View source: R/travis-builds.R

travis_get_buildsR Documentation

Travis CI builds

Description

Functions around completed or pending Travis CI builds and jobs.

Usage

travis_get_builds(repo = github_repo(), endpoint = get_endpoint())

travis_restart_build(
  build_id = NULL,
  repo = github_repo(),
  endpoint = get_endpoint()
)

travis_cancel_build(build_id, repo = github_repo(), endpoint = get_endpoint())

travis_get_jobs(
  build_id = NULL,
  repo = github_repo(),
  endpoint = get_endpoint()
)

travis_restart_job(job_id, repo = github_repo(), endpoint = get_endpoint())

travis_cancel_job(job_id, repo = github_repo(), endpoint = get_endpoint())

travis_debug_job(
  job_id,
  log_output = FALSE,
  repo = github_repo(),
  endpoint = get_endpoint()
)

travis_get_log(job_id = NULL, repo = github_repo(), endpoint = get_endpoint())

travis_delete_log(job_id, repo = github_repo(), endpoint = get_endpoint())

Arguments

repo

[string]
The repository slug to use. Must follow the "user/repo" structure. travis_get_builds() calls the "builds" API for the current repository.

endpoint

[string]
Which Travis endpoint to use. Defaults to ".org". Accepted values are ".com" and ".org". Can be set globally via env var R_TRAVIS.

build_id

[integer(1)]
The build ID, as obtained from travis_get_builds(). If not supplied, the latest build is used.

job_id

[integer(1)]
The job ID, as obtained from travis_get_builds().

log_output

Show the debugging output in the publicly visible log? When set to TRUE, refrain from issuing commands that might expose secrets.


ropenscilabs/travis documentation built on May 18, 2022, 8:33 p.m.