Page MenuHomeDevCentral

Allow Jenkins jobs to be only notified on failure
ClosedPublic

Authored by dereckson on Aug 23 2016, 00:43.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 31, 11:28
Unknown Object (File)
Sun, Oct 20, 15:05
Unknown Object (File)
Mon, Oct 14, 11:25
Unknown Object (File)
Wed, Oct 9, 02:11
Unknown Object (File)
Mon, Oct 7, 15:38
Unknown Object (File)
Mon, Oct 7, 12:37
Unknown Object (File)
Oct 4 2024, 05:03
Unknown Object (File)
Oct 3 2024, 11:36
Subscribers

Details

Summary

In the Jenkins configuration file, any job in notifyOnlyOnFailure
will be ignored if the event hasn't a failure status.

This allows to handle at notifications level what the notifications
plugin doesn't handle yet.

Ref T953.

Test Plan
  • Fire notification for a successful Jenkins task, see it ignored
  • Unit tests

Diff Detail

Repository
rNOTIF Notifications center
Lint
Lint Passed
Unit
Tests Passed
Branch
jenkins-notifyOnlyOnFailure

Event Timeline

dereckson retitled this revision from to Allow Jenkins jobs to be only notified on failure.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added inline comments.
app/Notifications/JenkinsNotification.php
109

Test me.

This revision is now accepted and ready to land.Aug 23 2016, 13:15
app/Analyzers/Jenkins/JenkinsPayloadAnalyzer.php
150

.

This revision was automatically updated to reflect the committed changes.