Class ArtifactHandlerPackagingDecorator

java.lang.Object
com.atlassian.bamboo.build.artifact.ArtifactHandlerDecoratorSupport
com.atlassian.bamboo.build.artifact.handlers.ArtifactHandlerPackagingDecorator
All Implemented Interfaces:
ArtifactHandler, RepublishingArtifactHandler, BambooPluginModule

public class ArtifactHandlerPackagingDecorator extends ArtifactHandlerDecoratorSupport implements RepublishingArtifactHandler

A decorator for an ArtifactHandler that adds packaging of artifact files when certain conditions are met.

This decorator checks the ArtifactHandler.getMaxUnarchivedFilesPerArtifact(Map) threshold when publishing artifacts and if it is exceeded, it packages all artifact files into a single archive, which is then published instead.

Artifacts are automatically unpacked during retrieval, which means that for artifact dependency consumers (e.g. different build stages, different build plans or deployment projects) the packaging will be transparent.