public abstract class Rule extends Object implements Serializable, hudson.ExtensionPoint
CoverageObjects as "failed". Such logic is used to mark builds as unstable when certain condition is met.
For example, one can define a rule where "MCDC coverage must be better than 50% for any class", and if this rule is violated, the build will be marked as unstable.
The rule instances are persisted as a part of
Build, so make sure
to make your class serializable. This is so that we can consistently mark
coverage results even if the job configuration changes.
|Constructor and Description|
|Modifier and Type||Method and Description|
public abstract void enforce(CoverageReport report, hudson.model.TaskListener listener)
Copyright © 2016–2019 Vector Software. All rights reserved.