|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArtifactManager
Common interface for artifact publishers.
Method Summary | |
---|---|
boolean |
publish(BuildLogger buildLogger,
PlanResultKey planResultKey,
java.io.File baseDirectory,
ArtifactDefinitionContext artifact,
int minExpectedFilesCnt)
Deprecated. since 4.2 use $ publish(BuildLogger, PlanResultKey, File, ArtifactDefinitionContext, Map, int) |
boolean |
publish(BuildLogger buildLogger,
PlanResultKey planResultKey,
java.io.File baseDirectory,
ArtifactDefinitionContext artifact,
java.util.Map<java.lang.String,java.lang.String> artifactHandlerConfiguration,
int minExpectedFilesCnt)
Request copy of artifacts from a designated location to artifact storage. |
boolean |
retrieve(BuildLogger buildLogger,
PlanResultKey planResultKey,
ArtifactSubscriptionContext artifactSubscription,
java.util.Map<java.lang.String,java.lang.String> artifactHandlerConfiguration,
java.io.File buildWorkingDirectory)
Retrieves an artifact from artifact storage. |
boolean |
retrieve(PlanResultKey planResultKey,
ArtifactSubscriptionContext artifactSubscription,
java.io.File buildWorkingDirectory)
Deprecated. since 4.2 use $ retrieve(BuildLogger, PlanResultKey, ArtifactSubscriptionContext, Map, File) |
ErrorCollection |
validateArtifactsSize(java.io.File baseDirectory,
ArtifactContext artifactContext)
Validates total size of artifacts produced for single build result |
Method Detail |
---|
boolean publish(@Nullable BuildLogger buildLogger, @NotNull PlanResultKey planResultKey, @NotNull java.io.File baseDirectory, @NotNull ArtifactDefinitionContext artifact, @NotNull java.util.Map<java.lang.String,java.lang.String> artifactHandlerConfiguration, int minExpectedFilesCnt)
buildLogger
- optional, used to log messagesplanResultKey
- key of a plan result that created the artifactartifact
- definition of the artifactdeleteSource
- true performs move instead of copyminExpectedFilesCnt
- how many files are necessary to consider the artifact complete, null if no requirements are madesize
-
@Deprecated boolean publish(@Nullable BuildLogger buildLogger, @NotNull PlanResultKey planResultKey, @NotNull java.io.File baseDirectory, @NotNull ArtifactDefinitionContext artifact, int minExpectedFilesCnt)
publish(BuildLogger, PlanResultKey, File, ArtifactDefinitionContext, Map, int)
buildLogger
- optional, used to log messagesplanResultKey
- key of a plan result that created the artifactartifact
- definition of the artifactdeleteSource
- true performs move instead of copyminExpectedFilesCnt
- how many files are necessary to consider the artifact complete, null if no requirements are made
@Deprecated boolean retrieve(@NotNull PlanResultKey planResultKey, @NotNull ArtifactSubscriptionContext artifactSubscription, @NotNull java.io.File buildWorkingDirectory)
retrieve(BuildLogger, PlanResultKey, ArtifactSubscriptionContext, Map, File)
planResultKey
- the plan result that contains the artifactartifactSubscription
- the artifact subscription used to identify artifactbuildWorkingDirectory
- working directory of current build
boolean retrieve(@Nullable BuildLogger buildLogger, @NotNull PlanResultKey planResultKey, @NotNull ArtifactSubscriptionContext artifactSubscription, @NotNull java.util.Map<java.lang.String,java.lang.String> artifactHandlerConfiguration, @NotNull java.io.File buildWorkingDirectory)
buildLogger
- to useplanResultKey
- the plan result that contains the artifactartifactSubscription
- the artifact subscription used to identify artifactbuildWorkingDirectory
- working directory of current build
ErrorCollection validateArtifactsSize(@NotNull java.io.File baseDirectory, @NotNull ArtifactContext artifactContext)
baseDirectory
- artifactContext
- - contains artifacts size quota if set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |