Interface DigestProducingArtifactsPublisher

    • Method Detail

      • publishFilesWithDigests

        int publishFilesWithDigests​(@NotNull
                                    Map<File,​String> filePathMap,
                                    @NotNull
                                    FlowLogger logger,
                                    @Nullable
                                    Consumer<ArtifactDigestInfo> digestConsumer)
                             throws ArtifactPublishingFailedException
        Publishes files. Note that publishing is performed from the agent messages queue and thus this method can be called when build on the agent is already finished.
        Parameters:
        filePathMap - map of the file to publish to its destination directory
        digestConsumer - optional consumer for artifact digests
        Returns:
        Number of published artifacts
        Throws:
        ArtifactPublishingFailedException - if publishing failed