travis_get_builds: Travis CI builds

Description Usage Arguments

View source: R/travis-builds.R

Description

Functions around completed or pending Travis CI builds and jobs.

travis_get_builds() calls the "builds" API for the current repository.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
travis_get_builds(repo = github_repo(), token = travis_token(repo),
  ...)

travis_restart_build(build_id, repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

travis_restart_last_build(repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

travis_cancel_build(build_id, repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

travis_get_jobs(build_id, repo = github_repo(),
  token = travis_token(repo))

travis_restart_job(job_id, repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

travis_cancel_job(job_id, repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

travis_debug_job(job_id, log_output = FALSE, repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

travis_get_log(job_id, repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

travis_delete_log(job_id, repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

Arguments

repo

[string|numeric]
The GitHub repo slug, by default obtained through github_repo(). Alternatively, the Travis CI repo ID, e.g. obtained through travis_repo_id().

token

[Token2.0]
A Travis CI token obtained from travis_token() or auth_travis().

...

see httr::GET()

build_id

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

quiet

[flag]
Set to FALSE to suppress success message.

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.


romainfrancois/travis documentation built on May 27, 2019, 1:49 p.m.