Modifier and Type | Field and Description |
---|---|
java.lang.String |
location |
SSHOptions |
options |
org.savantbuild.output.Output |
output |
java.lang.String |
server |
Constructor and Description |
---|
SCPProcess(org.savantbuild.output.Output output,
java.lang.String server,
java.lang.String location,
SSHOptions options)
Constructs the SSHProcess.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteIntegrationBuilds(Artifact artifact)
Not implemented yet.
|
java.nio.file.Path |
fetch(Artifact artifact,
java.lang.String item,
PublishWorkflow publishWorkflow)
Not supported right now.
|
java.nio.file.Path |
publish(Artifact artifact,
java.lang.String item,
java.nio.file.Path artifactFile)
Publishes the given artifact item into the SubVersion repository.
|
public final java.lang.String location
public final SSHOptions options
public final org.savantbuild.output.Output output
public final java.lang.String server
public SCPProcess(org.savantbuild.output.Output output, java.lang.String server, java.lang.String location, SSHOptions options) throws java.lang.NullPointerException
output
- The output.server
- The server host name or IP address.location
- The location to SCP to.options
- The SSHOptions, which must have a server setting.java.lang.NullPointerException
- If any of the required options are null.public void deleteIntegrationBuilds(Artifact artifact) throws ProcessFailureException
deleteIntegrationBuilds
in interface Process
artifact
- The artifact. This artifacts version is the next integration build version.ProcessFailureException
public java.nio.file.Path fetch(Artifact artifact, java.lang.String item, PublishWorkflow publishWorkflow) throws ProcessFailureException
fetch
in interface Process
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.public java.nio.file.Path publish(Artifact artifact, java.lang.String item, java.nio.file.Path artifactFile) throws ProcessFailureException
publish
in interface Process
artifact
- The artifact that the item might be associated with.item
- The name of the item to publish.artifactFile
- The artifact file.ProcessFailureException
- If the publish fails.