Class CompositeBuildArtifacts

  • All Implemented Interfaces:
    BuildArtifacts

    public final class CompositeBuildArtifacts
    extends BuildArtifactsBase

    Represents a container which allows to combine artifacts from multiple providers (e. g.: internal and external ones, or artifacts from different builds). Not related to composite builds.

    Author:
    vbedrosova
    • Constructor Detail

      • CompositeBuildArtifacts

        public CompositeBuildArtifacts​(@NotNull
                                       BuildArtifacts artifacts,
                                       @NotNull
                                       File baseFolder,
                                       @NotNull
                                       ArtifactsGuard guard,
                                       @NotNull
                                       BuildPromotion buildPromotion,
                                       @NotNull
                                       SecurityContext securityContext,
                                       @NotNull
                                       ArtifactsFilter filter)

        Creates a new flat view of the artifacts from a single artifact provider.

        Parameters:
        artifacts - the artifacts to wrap, either from the same build or (for composite builds) from artifact dependencies.
        baseFolder - usually the common server-side artifact directory for the given build (local artifacts internally hold the same value). Only used for file system locking purposes and not really needed (may even be a nonexistent path).
        guard - encapsulates the hierarchical RW-lock used to separate file system readers and writers.
        buildPromotion - the corresponding build promotion. For the artifacts of composite builds, artifacts will reference build promotions that correspond to artifact dependencies.
        securityContext - the security context (artifacts holds the same reference).
        filter - the artifact filter.