Class ScpTask

    • Constructor Detail

      • ScpTask

        public ScpTask()
    • Method Detail

      • fromLocalPath

        public ScpTask fromLocalPath​(java.lang.String localPath)
        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. Use fromLocalPath(String, boolean) to turn on Ant-style pattern matching.
      • fromLocalPath

        public ScpTask fromLocalPath​(java.lang.String localPath,
                                     boolean antStyle)
        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
        public ScpTask fromArtifact​(java.lang.String artifactName)
        Deprecated.
        since Bamboo 6.1.0, use fromArtifact(ArtifactItem)
        Name of the artifact to copy.
      • fromArtifact

        public ScpTask fromArtifact​(ArtifactItem artifactItem)
        Artifact to copy.
        Parameters:
        artifactItem - specifies which downloaded artifact shall be copied
        Returns:
        ScpTask
        Since:
        Bamboo 6.1.0
      • toRemotePath

        public ScpTask toRemotePath​(java.lang.String remotePath)
        The path to the destination directory on the remote server.
      • parseArtifactItemString

        public static ArtifactItem parseArtifactItemString​(java.lang.String fullName)
        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