Title: | Simple Jenkins Client for R |
---|---|
Description: | Manage jobs and builds on your Jenkins CI server <https://jenkins.io/>. Create and edit projects, schedule builds, manage the queue, download build logs, and much more. |
Authors: | Jeroen Ooms |
Maintainer: | Jeroen Ooms <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.9102 |
Built: | 2024-11-08 05:28:31 UTC |
Source: | https://github.com/ropensci/jenkins |
Simple client for managing jobs and builds on a Jenkins server. Set a
default access token via the JENKINS_PAT
environment variable.
jenkins(server = "http://jenkins.ropensci.org", username = "jeroen", token = jenkins_pat(), verbose = FALSE)
jenkins(server = "http://jenkins.ropensci.org", username = "jeroen", token = jenkins_pat(), verbose = FALSE)
server |
base url of the jenkins server |
username |
name of the jenkins user to login |
token |
authentication token (or password) for your jenkins server. |
verbose |
print http output for debugging |
## jk <- jenkins('https://ci.yourserver.com') <jenkins> $build_info(job_name, build_id = "lastBuild") $build_log(job_name, build_id = "lastBuild") $build_stop(job_name, build_id = "lastBuild") $node_info(node_name = "master") $node_list() $project_build(job_name, params = list(KEEP_CACHE = "true")) $project_build_all(delay = 0.5, shuffle = FALSE, keep_cache = TRUE, update_universe = FALSE) $project_config(job_name) $project_create(job_name, xml_string) $project_delete(job_name) $project_disable(job_name) $project_enable(job_name) $project_list() $project_update(job_name, xml_string) $queue_cancel(queue_id) $queue_cancel_all() $queue_info(queue_id) $queue_list() $server_info() $user_info(user_name = username) $user_list() $view_create(view_name, xml_string) $view_delete(view_name) $view_info(view_name) $view_list() $view_update(view_name, xml_string)
https://wiki.jenkins.io/display/JENKINS/Terminology
## Not run: # This requires a jenkins server jk <- jenkins(server = 'http://jenkins.ropensci.org', username = 'jeroen') # Do stuff jk$server_info() jk$project_build('magick') # It's now in the queue jk$queue_list() # Check build status jk$build_info('magick') # Get latest build log jk$build_log('magick', build_id = 'lastCompletedBuild') ## End(Not run)
## Not run: # This requires a jenkins server jk <- jenkins(server = 'http://jenkins.ropensci.org', username = 'jeroen') # Do stuff jk$server_info() jk$project_build('magick') # It's now in the queue jk$queue_list() # Check build status jk$build_info('magick') # Get latest build log jk$build_log('magick', build_id = 'lastCompletedBuild') ## End(Not run)