Package org.artifactory.build
Interface Builds
-
public interface Builds
- Author:
- Noam Y. Tenne
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatusHolder
deleteBuild(BuildRun buildRun)
Removes the build of the given details.Set<FileInfo>
getArtifactFiles(BuildRun buildRun)
Locates the file info objects of all the given build's produced artifactsList<String>
getBuildNames()
List<String>
getBuildNames(String buildRepo)
List<BuildRun>
getBuilds(String name, String number, String started)
Retrieve buildsList<BuildRun>
getBuilds(String name, String number, String started, String buildRepo)
Retrieve buildsDetailedBuildRun
getDetailedBuild(BuildRun buildRun)
void
saveBuild(DetailedBuildRun detailedBuildRun)
Saves or updates the given build configuration in the default build-info repo
-
-
-
Method Detail
-
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 namenumber
- An optional build number - can be null to retrieve all buildsstarted
- 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 namenumber
- An optional build number - can be null to retrieve all buildsstarted
- An optional start timebuildRepo
- 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
-
-