Class 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
    • 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)