Difference between revisions of "Jenkins"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
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. | ||
+ | |||
+ | === Option 1: Let Jenkis Manage webhooks === | ||
* go to https://github.com/settings/applications | * go to https://github.com/settings/applications | ||
Line 22: | Line 24: | ||
** OAuth token: Paste the token from "Personal access tokens" | ** OAuth token: Paste the token from "Personal access tokens" | ||
* click save | * click save | ||
+ | |||
+ | === Option 2: Manually Manage Webhooks === | ||
+ | |||
+ | * 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" |
Revision as of 20:48, 8 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.
Option 1: Let Jenkis Manage webhooks
- 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
- 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"