This Jenkins shared library contains a WebDAV client to access and upload files to a WebDAV-enabled site. This can be used - for example - to upload build artifacts.
See Jenkins User Handbook, chapter Extending with Shared Libraries on how to configure pipeline libraries.
In a pipeline script:
library('webdav-library')
node ("...") {
ws {
sh """
echo "Hello World!" > test.txt
"""
def uploads = webdav url: 'https://some.server.com/download', credentialsId: 'some_server_credentials'
uploads.put('nightly', '*.txt')
}
}
This library is MIT licensed. See license.txt
for details.