Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
update some examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jun 6, 2019
1 parent 21f0e58 commit cfc38c0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions jenkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,23 @@ Now test connecting with the R client:
```r
# remotes::install_github("jeroen/jenkins")
library(jenkins)
jk <- jenkins("http://jenkins.ropensci.org")
jk <- jenkins("https://dev.ropensci.org")

# Do stuff
jk$info()
jk$project_list()
```

Create a separate Jenkins Job for each repository.
Create a separate Jenkins Job for each repository. We have a template in the betty package:

```r
xml <- config_template('https://github.com/ropensci/unrtf')
jk$job_create('unrtf', xml)
jk$job_list()
remotes::install_github("jeroen/betty")
xml <- betty::config_template('https://github.com/ropensci/unrtf')
jk$project_create('unrtf', xml)
jk$project_build('unrtf')
```

This part is likely to change.

## Installing a webhook

To automatically trigger builds, add a webhook on Github (either at repo or org level) to `/github-webhook/` on your Jenkins server. Make sure to put the trailing slash in the webhook:
Expand Down

0 comments on commit cfc38c0

Please sign in to comment.