Slide 20
Slide 20 text
Example 1: Use Windows network drives
task mountShare(type: Exec, group: 'Network shares') {
commandLine 'cmd', '/c', 'net', 'use', 'X:', '\\\\server\\share', \
"$password", "/USER:$username", '/persistent:no'
standardInput System.in
}
task unmountShare(type: Exec, group: 'Network shares') {
commandLine 'cmd', '/c', 'net', 'use', 'X:', '/DELETE'
}
20