Class AgentArtifactHelperImpl

    • Method Detail

      • publishArtifactList

        public void publishArtifactList​(@NotNull
                                        List<ArtifactDataInstance> artifacts,
                                        @Nullable
                                        Map<String,​String> commonProperties)
                                 throws IOException
        Description copied from interface: AgentArtifactHelper
        Publish information about current build external artifacts. Use this method to provide information about artifacts uploaded to external storage during the build.
        Method will create and publish a file with json-serialized data. Note, that appending to already uploaded file is not supported. Subsequent calls will result in file being overwritten.
        Specified by:
        publishArtifactList in interface AgentArtifactHelper
        Parameters:
        artifacts - list with information about external artifacts
        commonProperties - common properties map for these list
        Throws:
        IOException - in case of errors
      • isEnabled

        public boolean isEnabled​(@NotNull
                                 ArtifactsPublisher publisher,
                                 @NotNull
                                 String path)
        Description copied from interface: AgentArtifactHelper
        Whether or not the artifact should be published by the publisher
        Specified by:
        isEnabled in interface AgentArtifactHelper
        Parameters:
        publisher - publisher
        path - resulting artifact path
        Returns:
        true if publisher should publish artifact