Interface ArtifactsPublisher

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getType()
      Get type string id.
      boolean isEnabled()
      Check if this publisher is currently enabled.
      int publishFiles​(java.util.Map<java.io.File,​java.lang.String> filePathMap)
      Publishes files.
    • Method Detail

      • publishFiles

        int publishFiles​(@NotNull
                         java.util.Map<java.io.File,​java.lang.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
        java.lang.String getType()
        Get type string id. Should match jetbrains.buildServer.serverSide.storage.StorageType#getType()
        Returns:
        see above
        Since:
        2017.1