FTPUpload
An FTP Upload build step.
Example. Adds an FTP Upload build step with FTPS security connection mode, private protection mode, authentification via username and password, binary transfer mode and active FTP mode. See options in documentation.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
ftpUpload {
name = "My FTP Upload step"
targetUrl = "8.8.8.8"
securityMode = FTPUpload.SecurityMode.FTPS
dataChannelProtection = FTPUpload.DataChannelProtectionMode.PRIVATE
authMethod = usernameAndPassword {
username = "username"
password = "credentialsJSON:******"
}
ftpMode = FTPUpload.FTPMode.ACTIVE
transferMode = FTPUpload.TransferMode.BINARY
sourcePath = """
dir/**/*.zip
*.zip => winFiles
unix/distro.tgz => linuxFile
""".trimIndent()
}
Content copied to clipboard }
}
Content copied to clipboard
See also
Constructors
Types
Link copied to clipboard
Link copied to clipboard
enum DataChannelProtectionMode : Enum<FTPUpload.DataChannelProtectionMode>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
fun booleanParameter( customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): SingleDelegateProvider<Boolean>
Content copied to clipboard
Link copied to clipboard
Deletes all configured build step conditions
Link copied to clipboard
fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): CompoundDelegateProvider<T>
Content copied to clipboard
Link copied to clipboard
Configures build step conditions
Link copied to clipboard
Copies parameters of this object to the specified target
Link copied to clipboard
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Link copied to clipboard
fun doubleParameter(customName: String? = null): SingleDelegateProvider<Double>
Content copied to clipboard
Link copied to clipboard
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): SingleDelegateProvider<E>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun intParameter(customName: String? = null): SingleDelegateProvider<Int>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun stringParameter(customName: String? = null): SingleDelegateProvider<String>
Content copied to clipboard
Link copied to clipboard
fun usernameAndPassword(init: FTPUpload.AuthMethod.UsernameAndPassword.() -> Unit = {}): FTPUpload.AuthMethod.UsernameAndPassword
Content copied to clipboard
Link copied to clipboard
Validates this object and reports found errors to the provided consumer