Skip to content
Snippets Groups Projects
Commit eda5bb40 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'issue-21' into 'master'

Issue 21

Closes #21

See merge request !35
parents 0e7cf0e7 19558ccd
No related branches found
No related tags found
1 merge request!35Issue 21
Pipeline #28499 failed
...@@ -128,9 +128,14 @@ def deploy_documentation(path, package, stable, public, branch, tag, username, ...@@ -128,9 +128,14 @@ def deploy_documentation(path, package, stable, public, branch, tag, username,
deploy_docs_to.add(tag) deploy_docs_to.add(tag)
deploy_docs_to.add('stable') deploy_docs_to.add('stable')
# creates package directory, and then uploads directory there
for k in deploy_docs_to: for k in deploy_docs_to:
remote_path = '%s/%s' % (remote_path_prefix, k) if not davclient.check(remote_path_prefix): #base package directory
logger.info('[dav] mkdir %s', remote_path_prefix)
if not dry_run:
davclient.mkdir(remote_path_prefix)
logger.info('[dav] %s -> %s%s%s', path, SERVER, server_info['root'], logger.info('[dav] %s -> %s%s%s', path, SERVER, server_info['root'],
remote_path) remote_path)
remote_path = '%s/%s' % (remote_path_prefix, k)
if not dry_run: if not dry_run:
davclient.upload_directory(local_path=path, remote_path=remote_path) davclient.upload_directory(local_path=path, remote_path=remote_path)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment