You can automatically trigger build jobs on a Jenkins server when pushes are made to a repository in your GitHub Enterprise instance.
GitHub Enterprise configuration
- Sign into GitHub Enterprise with your personal user account.
- Navigate to the repository you want to connect to Travis.
- In the right sidebar, click Settings.
- In the left sidebar, click Wehooks & Services.
- In the Services box, click Add service.
- Select "Travis CI".
- Fill in the configuration settings:
- In the User field, type your Travis CI username.
- In the Token field, type your Travis CI token.
- In the Domain field, type the domain of your project on Travis CI.
- Click Add service.
README build status
- Navigate to your repository's page on Travis CI.
- In the top right corner of the page, click the build status image.
- In the build dialog, copy the URL from the Markdown field.
- In your GitHub Enterprise repository, paste the build status URL into the repository's README.