Interface Builds


public interface Builds
Author:
Noam Y. Tenne
  • Method Details

    • getBuildNames

      List<String> getBuildNames()
      Returns:
      a list of the names of all builds deployed to Artifactory
    • getBuildNames

      List<String> getBuildNames(@Nonnull String buildRepo)
      Returns:
      a list of the names of all builds deployed to Artifactory
    • getBuilds

      @Nonnull List<BuildRun> getBuilds(@Nonnull String name, @Nullable String number, @Nullable String started)
      Retrieve builds
      Parameters:
      name - Builds name
      number - An optional build number - can be null to retrieve all builds
      started - An optional start time
    • getBuilds

      @Nonnull List<BuildRun> getBuilds(@Nonnull String name, @Nullable String number, @Nullable String started, @Nonnull String buildRepo)
      Retrieve builds
      Parameters:
      name - Builds name
      number - An optional build number - can be null to retrieve all builds
      started - An optional start time
      buildRepo - Build info storing repository
    • getDetailedBuild

      @Nullable DetailedBuildRun getDetailedBuild(@Nonnull BuildRun buildRun)
      Parameters:
      buildRun - A lightweight build run
      Returns:
      Detailed build run details
    • deleteBuild

      @Nonnull StatusHolder deleteBuild(@Nonnull BuildRun buildRun)
      Removes the build of the given details. Build artifacts or dependencies are not removed.
      Parameters:
      buildRun - Build info details
      Returns:
      Operation status holder
    • getArtifactFiles

      @Nonnull Set<FileInfo> getArtifactFiles(@Nonnull BuildRun buildRun)
      Locates the file info objects of all the given build's produced artifacts
      Parameters:
      buildRun - Build run to locate artifacts of
      Returns:
      All found artifact file infos
    • saveBuild

      void saveBuild(@Nonnull DetailedBuildRun detailedBuildRun)
      Saves or updates the given build configuration in the default build-info repo
      Parameters:
      detailedBuildRun - Build configuration to save