public class DecisionMaker extends Object
| Constructor and Description |
|---|
DecisionMaker(hudson.model.Run run,
hudson.model.TaskListener listener) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAtLeastOneRuleMatched(Webhook webhook)
Iterates over each macro for passed webhook and checks if at least one template matches to expected value.
|
boolean |
isStatusMatched(Webhook webhook)
Checks if notification should be passed by comparing current status and webhook configuration
|
public DecisionMaker(hudson.model.Run run,
hudson.model.TaskListener listener)
public boolean isAtLeastOneRuleMatched(Webhook webhook)
webhook - webhook that should be examinedtrue if at least one macro has matched, false otherwisepublic boolean isStatusMatched(Webhook webhook)
webhook - webhook that will be verifiedtrue if current status matches to webhook configurationCopyright © 2016–2020. All rights reserved.