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 StatusHolderdeleteBuild(BuildRun buildRun)Removes the build of the given details.java.util.Set<FileInfo>getArtifactFiles(BuildRun buildRun)Locates the file info objects of all the given build's produced artifactsjava.util.List<java.lang.String>getBuildNames()java.util.List<BuildRun>getBuilds(java.lang.String name, java.lang.String number, java.lang.String started)Retrieve buildsDetailedBuildRungetDetailedBuild(BuildRun buildRun)voidsaveBuild(DetailedBuildRun detailedBuildRun)Saves or updates the given build configuration
-
-
-
Method Detail
-
getBuildNames
java.util.List<java.lang.String> getBuildNames()
- Returns:
- a list of the names of all builds deployed to Artifactory
-
getBuilds
@Nonnull java.util.List<BuildRun> getBuilds(@Nonnull java.lang.String name, @Nullable java.lang.String number, @Nullable java.lang.String started)
Retrieve builds- Parameters:
name- Builds namenumber- An optional build number - can be null to retrieve all buildsstarted- An optional start time
-
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 java.util.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- Parameters:
detailedBuildRun- Build configuration to save
-
-