3

Integrating GoCD with GitHub

 2 years ago
source link: https://www.gocd.org/2015/07/07/GitHub-Integration/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Integrating GoCD with GitHub

GoCD Team

With the upcoming 15.2 release we're announcing some new API endpoints that will make integrating with GoCD with GitHub easier and fun.

In this blog we will show you how you can integrate GoCD with GitHub using a few plugins for profit and fun.

Login using the GitHub OAuth Plugin

This plugin allows you to login, search and add existing github users to GoCD.

Login Page with GitHub icon Login Page with GitHub icon (Click on image to enlarge)

Search and Add User Search and Add User (Click on image to enlarge)


Build pull requests with GitHub Pull Request Poller & GitHub Status Notifier

The combination of these plugins will help you configure GoCD such that any pull-requests that are submitted will automatically be built, and their statuses updated on the pull request on GitHub.

GitHub PR page gets updated GitHub PR page gets updated (Click on image to enlarge)

GitHub PR listing page gets updated GitHub PR listing page gets updated (Click on image to enlarge)


GitHub Issues Integration with Custom Project Management Setup

Any commit messages that contain references to issues or pull requests using the popular means to mention issue (#42) can is something that GoCD already understands.

To configure this, edit the pipeline material and setup a pattern and a link under "Project Management" tab.

GitHub Issue Tracker Integration GitHub Issue Tracker Integration (Click on image to enlarge)

Any commit messages with issue numbers will be linked to the correct GitHub issues:

Comment with GitHub issue link Comment with GitHub issue link (build cause pop-up) (Click on image to enlarge)

You can also compare pipelines and get the release notes or changelog straight out of GoCD.

Compare pipeline page shows comment with GitHub issue link Comment with GitHub issue link (compare pipeline page) (Click on image to enlarge)


If you think GoCD can provide more integrations to GitHub or provide similar integrations with other tools/services please do leave a comment or ask on the mailing list.



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK