Package org.artifactory.build
Interface Builds
public interface Builds
- Author:
- Noam Y. Tenne
-
Method Summary
Modifier and TypeMethodDescriptiondeleteBuild
(BuildRun buildRun) Removes the build of the given details.getArtifactFiles
(BuildRun buildRun) Locates the file info objects of all the given build's produced artifactsgetBuildNames
(String buildRepo) Retrieve buildsRetrieve buildsgetDetailedBuild
(BuildRun buildRun) void
saveBuild
(DetailedBuildRun detailedBuildRun) Saves or updates the given build configuration in the default build-info repo
-
Method Details
-
getBuildNames
- Returns:
- a list of the names of all builds deployed to Artifactory
-
getBuildNames
- 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
- Parameters:
buildRun
- A lightweight build run- Returns:
- Detailed build run details
-
deleteBuild
Removes the build of the given details. Build artifacts or dependencies are not removed.- Parameters:
buildRun
- Build info details- Returns:
- Operation status holder
-
getArtifactFiles
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
Saves or updates the given build configuration in the default build-info repo- Parameters:
detailedBuildRun
- Build configuration to save
-