Class ScpTask
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<T,E>
com.atlassian.bamboo.specs.builders.task.BaseSshTask<ScpTask,ScpTaskProperties>
com.atlassian.bamboo.specs.builders.task.ScpTask
Represents task that runs scp command.
-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.builders.task.BaseSshTask
authenticationType, hostFingerprint, hosts, key, passphrase, password, port, sharedCredentials, usernameFields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull ScpTaskPropertiesbuild()booleanfromArtifact(Artifact artifact) Deprecated.fromArtifact(ArtifactItem artifactItem) Artifact to copy.fromArtifact(String artifactName) Deprecated.since Bamboo 6.1.0, usefromArtifact(ArtifactItem)fromLocalPath(String localPath) The local path (relative to the Bamboo working directory) to the files you want to copy.fromLocalPath(String localPath, boolean antStyle) The local path (relative to the Bamboo working directory) to the files you want to copy.inthashCode()static ArtifactItemparseArtifactItemString(String fullName) Convert a full artifact name "PROJECT-PLAN: artifact" or a short artifact name "artifact" into an ArtifactItem.toRemotePath(String remotePath) The path to the destination directory on the remote server.Methods inherited from class com.atlassian.bamboo.specs.builders.task.BaseSshTask
authenticateWithKey, authenticateWithKey, authenticateWithKeyWithPassphrase, authenticateWithKeyWithPassphrase, authenticateWithPassword, authenticateWithSshSharedCredentials, authenticateWithUsernamePasswordSharedCredentials, host, host, hostFingerprint, port, portDefault, usernameMethods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
Constructor Details
-
ScpTask
public ScpTask()
-
-
Method Details
-
fromLocalPath
The local path (relative to the Bamboo working directory) to the files you want to copy. Use commas to separate files and directories. You can also use Ant-style pattern matching to include multiple files, such as **\/target/*.jar. UsefromLocalPath(String, boolean)to turn on Ant-style pattern matching. -
fromLocalPath
The local path (relative to the Bamboo working directory) to the files you want to copy. Use commas to separate files and directories. You can also use Ant-style pattern matching to include multiple files, such as **\/target/*.jar. Ant-style pattern matching is false by default. -
fromArtifact
Deprecated.since Bamboo 6.1.0, usefromArtifact(ArtifactItem)Name of the artifact to copy. -
fromArtifact
Deprecated.since Bamboo 6.1.0, usefromArtifact(ArtifactItem)Artifact to copy. -
fromArtifact
Artifact to copy.- Parameters:
artifactItem- specifies which downloaded artifact shall be copied- Returns:
- ScpTask
- Since:
- Bamboo 6.1.0
-
toRemotePath
The path to the destination directory on the remote server. -
build
- Specified by:
buildin classTask<ScpTask,ScpTaskProperties>
-
parseArtifactItemString
Convert a full artifact name "PROJECT-PLAN: artifact" or a short artifact name "artifact" into an ArtifactItem.- Parameters:
fullName- artifact name with project-plan keys- Returns:
- ArtifactItem
-
equals
- Overrides:
equalsin classBaseSshTask<ScpTask,ScpTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseSshTask<ScpTask,ScpTaskProperties>
-
fromArtifact(ArtifactItem)