Skip to content

Instantly share code, notes, and snippets.

@colinrymer
Last active April 19, 2016 17:00
Show Gist options
  • Save colinrymer/66addc52bc10578bc901db7b4cb75eb4 to your computer and use it in GitHub Desktop.
Save colinrymer/66addc52bc10578bc901db7b4cb75eb4 to your computer and use it in GitHub Desktop.
+---------+ +-------+ +-----+ +---------+ +---------------+
| GitHub | | Slack | | CI | | Jenkins | | ArtifactRepo |
+---------+ +-------+ +-----+ +---------+ +---------------+
-----------------------\ | | | | |
| Pull Request opened. |-| | | | |
|----------------------| | | | | |
| | | | |
| Send message about PR opened. | | | |
|---------------------------------->| | | |
| | | | |
| Notification of PR opened. | | | |
|-------------------------------------------------------------------------------------->| | |
| | | | |
| | Set commit status to pending. | | |
|<--------------------------------------------------------------------------------------| | |
------------------------\ | | | | |
| commit status pending |-| | | | |
|-----------------------| | | | | |
| | | | |
| | | Initiate build. | |
| | |--------------------------->| |
| | -------------------------\ | | |
| | | Record job queue time. |-| | |
| | |------------------------| | | |
| | | | |
| | Send message about job queued. | | |
| |<--------------------------------------------------| | |
| | | | |
| | | Notify job started. | |
| | |<---------------------------| |
| | ---------------------------\ | | |
| | | Record job started time. |-| | |
| | |--------------------------| | | |
| | | | |
| | Send message about job starting. | | |
| |<--------------------------------------------------| | |
| | | | |
| | | | Upload build artifact to build bucket. |
| | | |----------------------------------------------->|
| | | | |
| | | Notify job completed. | |
| | |<---------------------------| |
| |-------------------------------------------------\ | | |
| || Record job finished time, output, status, etc. |-| | |
| ||------------------------------------------------| | | |
| | | | |
| | Send message job completed. | | |
| |<--------------------------------------------------| | |
| | | | |
| | Update commit status based on job status. | | |
|<--------------------------------------------------------------------------------------| | |
-------------------------------------------------\ | | | | |
| commit status `success`, `error`, or `failure` |-| | | | |
|------------------------------------------------| | | | | |
------------------------------------------\ | | | | |
| status will include build artifact URL. |-| | | | |
|-----------------------------------------| | | | | |
| | | | |
@colinrymer
Copy link
Author

@colinrymer
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment