@ExportedBean(defaultVisibility=999) public class ScoreCard extends Object
Constructor and Description |
---|
ScoreCard() |
Modifier and Type | Method and Description |
---|---|
Collection<Score> |
getScores()
Returns a collection of scores.
|
double |
getTotalPoints()
Returns the total points for this score card
|
void |
record(hudson.model.AbstractBuild<?,?> build,
RuleBook ruleBook,
hudson.model.BuildListener listener)
Record points for the rules in the rule book
|
void |
record(hudson.model.AbstractBuild<?,?> build,
RuleSet ruleset,
hudson.model.BuildListener listener)
Record points for the rules in the rule set
|
public void record(hudson.model.AbstractBuild<?,?> build, RuleSet ruleset, hudson.model.BuildListener listener)
build
- build to evaluateruleset
- rule set to use for evaluationlistener
- public void record(hudson.model.AbstractBuild<?,?> build, RuleBook ruleBook, hudson.model.BuildListener listener)
build
- build to evaluateruleBook
- rule book to use for evaluationlistener
- @Exported public Collection<Score> getScores() throws IllegalStateException
IllegalStateException
- thrown if the method is called before the scores has been recorded.@Exported public double getTotalPoints() throws IllegalStateException
IllegalStateException
- thrown if the method is called before scores has been calculatedCopyright © 2004-2015. All Rights Reserved.