public interface Process
Modifier and Type | Method and Description |
---|---|
void |
deleteIntegrationBuilds(Artifact artifact)
Deletes the integration builds.
|
java.nio.file.Path |
fetch(Artifact artifact,
java.lang.String item,
PublishWorkflow publishWorkflow)
Attempts to fetch the given item.
|
java.nio.file.Path |
publish(Artifact artifact,
java.lang.String item,
java.nio.file.Path artifactFile)
Attempts to publish the given item.
|
void deleteIntegrationBuilds(Artifact artifact) throws ProcessFailureException
artifact
- The artifact. This artifacts version is the next integration build version.ProcessFailureException
java.nio.file.Path fetch(Artifact artifact, java.lang.String item, PublishWorkflow publishWorkflow) throws ProcessFailureException
If the item is found, it should be published by calling the PublishWorkflow
.
artifact
- The artifact that the item is associated with.item
- The name of the item being fetched. This item name should NOT include the path information.
This will be handled by the processes so that flattened namespacing and other types of
handling can be performed. This item should only be the name of the item being fetched. For
example, if the artifact MD5 file is being fetched this would look like this:
common-collections-2.1.jar.md5.publishWorkflow
- The PublishWorkflow that is used to store the item if it can be found.ProcessFailureException
- If the process failed when fetching the artifact.java.nio.file.Path publish(Artifact artifact, java.lang.String item, java.nio.file.Path artifactFile) throws ProcessFailureException
If the item is published in a manner that a file can be returned, that file should be returned as it might be used to create paths or other constructs.
artifact
- The artifact that the item might be associated with.item
- The name of the item to publish.artifactFile
- The path to the artifact stored on disk (which could be a temporary file that it was downloaded
to).ProcessFailureException
- If there was any issue publishing.