Difference between revisions of "Jenkins"
Jump to navigation
Jump to search
m (Bot: Cosmetic changes) |
|||
Line 1: | Line 1: | ||
== General info == | == General info == | ||
− | Jenkins is an automatic build server. | + | Jenkins is an automatic build server. It compiles code projects on change |
== Github Integration == | == Github Integration == | ||
− | Github integration requires an ouath token to create post commit callbacks to the jenkins server. | + | Github integration requires an ouath token to create post commit callbacks to the jenkins server. You can either let jenkins manage all webhooks for all your projects, or configure each project yourself. |
=== Option 1: Let Jenkis Manage Webhooks === | === Option 1: Let Jenkis Manage Webhooks === | ||
Line 24: | Line 24: | ||
** API URL: leave this blank | ** API URL: leave this blank | ||
** username: your github username | ** username: your github username | ||
− | ** OAuth token: | + | ** OAuth token: Paste the token from "Personal access tokens" |
* click save | * click save | ||
Revision as of 23:30, 9 March 2015
General info
Jenkins is an automatic build server. It compiles code projects on change
Github Integration
Github integration requires an ouath token to create post commit callbacks to the jenkins server. You can either let jenkins manage all webhooks for all your projects, or configure each project yourself.
Option 1: Let Jenkis Manage Webhooks
Each github user only needs to do this once.
- go to https://github.com/settings/applications
- click "Generate New Token"
- Token Description: https://jenkins.pumpingstationone.org/
- write:repo_hook - Checked
- read:read:repo_hook - Checked
- admin:repo_hook - Checked
- All other options should be unchecked
- Click Generate Token
- Copy the token under "Personal access tokens".
- go to https://jenkins.pumpingstationone.org/configure and scroll down until you see "GitHub Web Hook"
- Click Add
- API URL: leave this blank
- username: your github username
- OAuth token: Paste the token from "Personal access tokens"
- click save
Option 2: Manually Manage Webhooks
You will have to do this for each github project you add to jenkins.
- go to your project page on github.
- Click "Settings" in the right sidebar
- Click "Webhooks and Services"
- Click "Add Service" and type "jenkins"
- You should see "Jenkins (Git plugin)"
- In the "Jenkins hook url" box, enter "https://jenkins.pumpingstationone.org/github-webhook/"
- Click "Add Service"