Interface AgentArtifactHelper
-
- All Known Implementing Classes:
AgentArtifactHelperImpl
public interface AgentArtifactHelperHelper interface for agent artifact publishers and accessors. Implementation will be autowired by Spring context.- Since:
- 2017.1
- Author:
- vbedrosova
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEnabled(ArtifactsPublisher publisher, String path)Whether or not the artifact should be published by the publishervoidpublishArtifactList(List<ArtifactDataInstance> artifacts, Map<String,String> commonProperties)Publish information about current build external artifacts.
-
-
-
Method Detail
-
publishArtifactList
void publishArtifactList(@NotNull List<ArtifactDataInstance> artifacts, @Nullable Map<String,String> commonProperties) throws IOExceptionPublish 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.- Parameters:
artifacts- list with information about external artifactscommonProperties- common properties map for these list- Throws:
IOException- in case of errors
-
isEnabled
boolean isEnabled(@NotNull ArtifactsPublisher publisher, @NotNull String path)Whether or not the artifact should be published by the publisher- Parameters:
publisher- publisherpath- resulting artifact path- Returns:
- true if publisher should publish artifact
- Since:
- 2020.2
-
-