public class PublishWorkflow
extends java.lang.Object
FetchWorkflow
, but this is in no way required.Constructor and Description |
---|
PublishWorkflow(Process... processes) |
Modifier and Type | Method and Description |
---|---|
void |
deleteIntegrationBuilds(Artifact artifact)
Deletes all of the files that contain integration build versions.
|
java.util.List<Process> |
getProcesses() |
java.nio.file.Path |
publish(Artifact artifact,
java.lang.String item,
java.nio.file.Path file)
Publishes the item using the processes in this workflow.
|
void |
publishNegative(Artifact artifact,
java.lang.String item)
Publishes a negative file for the artifact item.
|
public final java.util.List<Process> processes
public PublishWorkflow(Process... processes)
public void deleteIntegrationBuilds(Artifact artifact)
artifact
- The artifact information used to publish.public java.util.List<Process> getProcesses()
public java.nio.file.Path publish(Artifact artifact, java.lang.String item, java.nio.file.Path file) throws ProcessFailureException
artifact
- The artifact if needed.item
- The name of the item being published.file
- The file that is the artifact contents.ProcessFailureException
- If the artifact could not be published for any reason.public void publishNegative(Artifact artifact, java.lang.String item)
artifact
- The artifact information used to publish.item
- The item that the negative is being published for.