Page MenuHomeDevCentral

Accept mail notifications for DockerHub build failures
ClosedPublic

Authored by dereckson on Sep 1 2016, 19:30.
Tags
None
Referenced Files
F2826169: D641.id1604.diff
Thu, Apr 18, 19:07
Unknown Object (File)
Sun, Apr 14, 22:45
Unknown Object (File)
Sun, Apr 14, 22:07
Unknown Object (File)
Sun, Apr 14, 06:46
Unknown Object (File)
Sat, Apr 13, 05:42
Unknown Object (File)
Tue, Apr 9, 13:12
Unknown Object (File)
Tue, Apr 9, 12:41
Unknown Object (File)
Mon, Apr 8, 09:52

Details

Summary

The Docker Hub has currently an API to fire webhooks event when the
notification fails, but no mechanism to fire such notification when
a build fails.

But such notifications exist, by mail. We so accept incoming mail
Mailgun payloads to process them and fire a DockerHub buildFailure
notification.

Fixes T1000.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Passed
Unit
Test Failures
Branch
DockerHubFailures

Unit TestsBroken

TimeTest
0 msUnknown Unit Message ("")
PHP Fatal error: Class 'Nasqueron\Notifications\Notifications\Mailgun' not found in /home/ubuntu/workspace/notifications/app/Notifications/DockerHubNotification.php on line 104 Fatal error: Class 'Nasqueron\Notifications\Notifications\Mailgun' not found in /home/ubuntu/workspace/notifications/app/Notifications/DockerHubNotification.php on line 104 PHP Fatal error: Uncaught exception 'Illuminate\Contracts\Container\BindingResolutionException' with message 'Target [Illuminate\Contracts\Debug\ExceptionHandler] is not instantiable.' in /home/ubuntu/workspace/notifications/vendor/laravel/framework/src/Illuminate/Container/Container.php:748
217 msUnknown Unit Message ("")

Event Timeline

dereckson retitled this revision from to Accept mail notifications for DockerHub build failures.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a subscriber: Sandlayth.

Use Mailgun facade defined in D640.

Extract URL and link from text, tests are ok now.

dereckson added inline comments.
app/Notifications/DockerHubNotification.php
120

Use two classes instead here.

Each DockerHub payload have its own analyzer class.

dereckson marked an inline comment as done.
dereckson added inline comments.
app/Analyzers/DockerHub/BaseEvent.php
5 ↗(On Diff #1624)

Double space.

dereckson marked an inline comment as done.

Double space → single space in class declarations.

This revision was automatically updated to reflect the committed changes.