Class BatchRun

    • Field Detail

      • result

        protected Result result
        Build result. If null, we are still building.
      • timestamp

        public final Calendar timestamp
      • id

        public final int id
        Unique number that identifie this record among BatchRunAction.
      • duration

        protected long duration
        Number of milli-seconds it took to run this build.
    • Method Detail

      • getResult

        public Result getResult()
      • isRunning

        public boolean isRunning()
        Is this task still running?
      • getTimestampString

        public String getTimestampString()
        Gets the string that says how long since this run has started.
        Returns:
        string like "3 minutes" "1 day" etc.
      • getLogFile

        public File getLogFile()
        Gets the log file that stores the execution result.
      • getIconColor

        public BallColor getIconColor()
        Gets the icon color for display.
      • getBuildStatusIconClassName

        public String getBuildStatusIconClassName()
      • getBuildStatusUrl

        public String getBuildStatusUrl()
      • getPrevious

        public BatchRun getPrevious()
        Obtains the previous execution record, or null if no such record is available.
      • getNext

        public BatchRun getNext()
        Obtains the next execution record, or null if no such record is available.
      • getUrl

        public String getUrl()
        Gets the URL (under the context root) that points to this record.
        Returns:
        URL like "job/foo/53/batchTasks/0"
      • getNumber

        public String getNumber()
      • getBuildNumber

        public String getBuildNumber()
      • getDurationString

        public String getDurationString()
        Gets the string that says how long the build took to run.
      • getDuration

        @Exported
        public long getDuration()
        Gets the millisecond it took to build.
      • doProgressiveLog

        public void doProgressiveLog​(org.kohsuke.stapler.StaplerRequest req,
                                     org.kohsuke.stapler.StaplerResponse rsp)
                              throws IOException
        Handles incremental log output.
        Throws:
        IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object