Class BuildInfoArchiver

java.lang.Object
com.splunk.splunkjenkins.utils.BuildInfoArchiver

public class BuildInfoArchiver extends Object
  • Constructor Details

    • BuildInfoArchiver

      public BuildInfoArchiver()
  • Method Details

    • run

      public int run(long startTime, long endTime)
      Send existing build
      Parameters:
      startTime - the start time window of build
      endTime - the end time window of build
      Returns:
      total number of builds whose result or log was resent
    • run

      public int run(String jobName, long startTime, long endTime)
      Parameters:
      jobName - the job name, e.g. /folder/jobname or /job/folder/job/jobname
      startTime - the start time window of build
      endTime - the end time window of build
      Returns:
      total number of builds whose result or log was resent
    • run

      public int run(String jobName, com.google.common.base.Predicate<Run> predicate)
      Parameters:
      jobName - the job name, e.g. /folder/jobname or /job/folder/job/jobname
      predicate - function to check whether build apply
      Returns:
      total number of builds whose result or log was resent
    • sendBuild

      public boolean sendBuild(String buildUrl)
      Parameters:
      buildUrl - /job/folder/job/jobname/number
      Returns:
      true if the build is resend
    • run

      public int run(String jobName, int start, int end)
      Parameters:
      jobName - the job name, e.g. /folder/jobname or /job/folder/job/jobname
      start - start build number
      end - end build number
      Returns:
      total number of builds whose result or log was resent
    • run

      public int run(Item item, com.google.common.base.Predicate<Run> predicate)
      Send existing build
      Parameters:
      item - Jenkins job item
      predicate - function to check whether build apply
      Returns:
      total number of builds whose result or log was resent