|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.artifact.AbstractArtifactManager
public abstract class AbstractArtifactManager
Constructor Summary | |
---|---|
AbstractArtifactManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
CustomVariableContext customVariableContext)
|
Method Summary | |
---|---|
static org.apache.tools.ant.types.FileSet |
createFileSet(java.io.File baseDirectory,
ArtifactDefinitionContext artifact,
boolean useRelativeLocation)
Deprecated. since 4.2 use $ ArtifactHandlingUtils.createFileSet() |
protected java.lang.Iterable<ArtifactHandler> |
getArtifactHandlers(ArtifactDefinitionContext artifact,
java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
|
protected abstract void |
markSubscriptionAsConsumed(PlanResultKey planResultKey,
ArtifactSubscriptionContext artifactSubscription)
|
boolean |
publish(BuildLogger buildLogger,
PlanResultKey planResultKey,
java.io.File baseDirectory,
ArtifactDefinitionContext artifact,
int minExpectedFilesCnt)
Request copy of artifacts from a designated location to artifact storage. |
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. |
protected boolean |
publishFileSet(PlanResultKey planResultKey,
ArtifactDefinitionContext artifact,
org.apache.tools.ant.types.FileSet sourceFileSet,
java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
|
boolean |
retrieve(BuildLogger buildLogger,
PlanResultKey planResultKey,
ArtifactSubscriptionContext artifactSubscription,
java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration,
java.io.File buildWorkingDirectory)
Retrieves an artifact from artifact storage. |
boolean |
retrieve(PlanResultKey planResultKey,
ArtifactSubscriptionContext artifactSubscription,
java.io.File buildWorkingDirectory)
Retrieves an artifact from artifact storage. |
ErrorCollection |
validateArtifactsSize(java.io.File baseDirectory,
ArtifactContext artifactContext)
Validates total size of artifacts produced for single build result |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractArtifactManager(com.atlassian.plugin.PluginAccessor pluginAccessor, CustomVariableContext customVariableContext)
Method Detail |
---|
@Deprecated @Nullable public static org.apache.tools.ant.types.FileSet createFileSet(java.io.File baseDirectory, ArtifactDefinitionContext artifact, boolean useRelativeLocation)
ArtifactHandlingUtils.createFileSet()
baseDirectory
- directory used to resolve the copy patternsartifact
- artifact definitionuseRelativeLocation
- used to determine whether the relative location information from artifact definition should be used
public boolean publish(@Nullable BuildLogger buildLogger, @NotNull PlanResultKey planResultKey, @NotNull java.io.File baseDirectory, @NotNull ArtifactDefinitionContext artifact, int minExpectedFilesCnt)
ArtifactManager
publish
in interface ArtifactManager
buildLogger
- optional, used to log messagesplanResultKey
- key of a plan result that created the artifactartifact
- definition of the artifactminExpectedFilesCnt
- how many files are necessary to consider the artifact complete, null if no requirements are made
public 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)
ArtifactManager
publish
in interface ArtifactManager
buildLogger
- optional, used to log messagesplanResultKey
- key of a plan result that created the artifactartifact
- definition of the artifactminExpectedFilesCnt
- how many files are necessary to consider the artifact complete, null if no requirements are made
public final ErrorCollection validateArtifactsSize(@NotNull java.io.File baseDirectory, @NotNull ArtifactContext artifactContext)
ArtifactManager
validateArtifactsSize
in interface ArtifactManager
artifactContext
- - contains artifacts size quota if set
protected boolean publishFileSet(PlanResultKey planResultKey, ArtifactDefinitionContext artifact, org.apache.tools.ant.types.FileSet sourceFileSet, java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
public boolean retrieve(@NotNull PlanResultKey planResultKey, @NotNull ArtifactSubscriptionContext artifactSubscription, @NotNull java.io.File buildWorkingDirectory)
ArtifactManager
retrieve
in interface ArtifactManager
planResultKey
- the plan result that contains the artifactartifactSubscription
- the artifact subscription used to identify artifactbuildWorkingDirectory
- working directory of current build
public boolean retrieve(@Nullable BuildLogger buildLogger, @NotNull PlanResultKey planResultKey, @NotNull ArtifactSubscriptionContext artifactSubscription, @NotNull java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration, @NotNull java.io.File buildWorkingDirectory)
ArtifactManager
retrieve
in interface ArtifactManager
buildLogger
- to useplanResultKey
- the plan result that contains the artifactartifactSubscription
- the artifact subscription used to identify artifactbuildWorkingDirectory
- working directory of current build
protected abstract void markSubscriptionAsConsumed(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription)
protected java.lang.Iterable<ArtifactHandler> getArtifactHandlers(ArtifactDefinitionContext artifact, java.util.Map<java.lang.String,java.lang.String> artifactHandlersConfiguration)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |