Class DecisionMaker
java.lang.Object
jenkins.plugins.office365connector.DecisionMaker
Provides methods that help to decide if the notification should be sent or skipped.
- Author:
- Damian Szczepanik (damianszczepanik@github)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAtLeastOneRuleMatched(Webhook webhook) Iterates over each macro for passed webhook and checks if at least one template matches to expected value.booleanisStatusMatched(Webhook webhook) Checks if notification should be passed by comparing current status and webhook configuration
-
Constructor Details
-
DecisionMaker
-
-
Method Details
-
isAtLeastOneRuleMatched
Iterates over each macro for passed webhook and checks if at least one template matches to expected value.- Parameters:
webhook- webhook that should be examined- Returns:
trueif at least one macro has matched,falseotherwise
-
isStatusMatched
Checks if notification should be passed by comparing current status and webhook configuration- Parameters:
webhook- webhook that will be verified- Returns:
trueif current status matches to webhook configuration
-