hudson.plugins.codecover
Class Rule
java.lang.Object
hudson.plugins.codecover.Rule
- All Implemented Interfaces:
- hudson.ExtensionPoint, Serializable
public abstract class Rule
- extends Object
- implements Serializable, hudson.ExtensionPoint
Rule object encapsulates the logic to mark CoverageObject
s as "failed".
Such logic is used to mark builds as unstable when certain condition is met.
For example, one can define a rule where "line 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.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Constructor Summary |
Rule()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rule
public Rule()
enforce
public abstract void enforce(CoverageReport report,
hudson.model.TaskListener listener)
Copyright © 2004-2011. All Rights Reserved.