SMBUpload
An SMB Upload build step.
Example. Adds an SMB Upload build step with DNS only name resolution option enabled.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
smbUpload {
name = "My SMB Upload build step"
targetUrl = """\\host\share[\subdir]"""
dnsOnly = true
username = """domain\username"""
password = "credentialsJSON:******"
sourcePath = """
dir/**/*.zip
*.zip => winFiles
unix/distro.tgz => linuxFiles
""".trimIndent()
}
Content copied to clipboard }
}See also
Constructors
Properties
Optional collection of build step execution conditions
Build step execution mode
Newline- or comma-separated paths to files/directories to be deployed. Ant-style wildcards like dir/**/*.zip and target directories like *.zip => winFiles,unix/distro.tgz => linuxFiles, where winFiles and linuxFiles are target directories, are supported.
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
A list of records, each field of an item stored as a parameter of its own: parameter f of the n-th item, counting from 1, is stored as name.n.f. A script fills the list in the block of the parameter, see RecordList.
A record, each field stored as a parameter of its own: parameter f of the record is stored as name.f. A script fills the record in the block of the parameter; a record without parameters stores nothing.
Validates this object and reports found errors to the provided consumer