Class ConstraintReport
- java.lang.Object
-
- hudson.plugins.performance.reports.ConstraintReport
-
public class ConstraintReport extends Object
Creates a report of the constraint evaluation and stores it into a consecutive log file, a build environment variable and prints it to the Jenkins console output.- Author:
- Rene Kugel
-
-
Constructor Summary
Constructors Constructor Description ConstraintReport(ArrayList<ConstraintEvaluation> ceList, Run<?,?> globBuild, boolean persistConstraintLog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getAbsoluteConstraints()
short
getAllConstraints()
Calendar
getBuildDate()
int
getBuildNumber()
Result
getBuildResult()
String
getJunitReport()
String
getLinkToBuild()
String
getLoggerMsg()
String
getLoggerMsgAdv()
File
getPerformanceLog()
short
getRelativeConstraints()
short
getSuccessfulConstraints()
short
getViolatedConstraints()
short
getViolatedError()
short
getViolatedInformation()
short
getViolatedUnstable()
void
setPerformanceLog(File performanceLog)
void
writeResultsToEnvVar()
Writes the complete report to the environment variable: BUILD_CONSTRAINT_LOGvoid
writeResultsToFile()
Creates the log file if not present and writes the report to the log file.
-
-
-
Constructor Detail
-
ConstraintReport
public ConstraintReport(ArrayList<ConstraintEvaluation> ceList, Run<?,?> globBuild, boolean persistConstraintLog) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeResultsToFile
public void writeResultsToFile() throws IOException
Creates the log file if not present and writes the report to the log file. Only executed if persistConstraintLog == true- Throws:
IOException
-
writeResultsToEnvVar
public void writeResultsToEnvVar()
Writes the complete report to the environment variable: BUILD_CONSTRAINT_LOG
-
getBuildNumber
public int getBuildNumber()
-
getBuildDate
public Calendar getBuildDate()
-
getBuildResult
public Result getBuildResult()
-
getLinkToBuild
public String getLinkToBuild()
-
getAllConstraints
public short getAllConstraints()
-
getRelativeConstraints
public short getRelativeConstraints()
-
getAbsoluteConstraints
public short getAbsoluteConstraints()
-
getSuccessfulConstraints
public short getSuccessfulConstraints()
-
getViolatedConstraints
public short getViolatedConstraints()
-
getViolatedInformation
public short getViolatedInformation()
-
getViolatedUnstable
public short getViolatedUnstable()
-
getViolatedError
public short getViolatedError()
-
getLoggerMsg
public String getLoggerMsg()
-
getLoggerMsgAdv
public String getLoggerMsgAdv()
-
getJunitReport
public String getJunitReport()
-
getPerformanceLog
public File getPerformanceLog()
-
setPerformanceLog
public void setPerformanceLog(File performanceLog)
-
-