Interface ArtifactsPublisher

    • Method Detail

      • publishFiles

        int publishFiles​(@NotNull
                         Map<File,​String> filePathMap)
                  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
        Returns:
        number of successfully published files
        Throws:
        ArtifactPublishingFailedException - if publishing failed
      • isEnabled

        boolean isEnabled()
        Check if this publisher is currently enabled. Allows disabling/skipping publishers in runtime.
        Returns:
        see above.
      • getType

        @NotNull
        String getType()
        Get type string id. Should match jetbrains.buildServer.serverSide.storage.StorageType#getType()
        Returns:
        see above
        Since:
        2017.1