Commit 74af097f authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

doc.py: update url with "-release"

parent 9f369b09
...@@ -20,9 +20,9 @@ if __name__ == '__main__': ...@@ -20,9 +20,9 @@ if __name__ == '__main__':
f.write(head.read()) f.write(head.read())
for project, namespace, branch in sorted(requests.get(f'{RAINBOARD}/doc').json()['ret']): for project, namespace, branch in sorted(requests.get(f'{RAINBOARD}/doc').json()['ret']):
url = f'{GITLAB}/{namespace}/{project}/-/jobs/artifacts/{branch}/download?job=robotpkg-{project}-16.04' url = f'{GITLAB}/{namespace}/{project}/-/jobs/artifacts/{branch}/download'
path = DOC / namespace / project / branch path = DOC / namespace / project / branch
r = requests.get(url, {'job': f'robotpkg-{project}-{VERSION}'}, stream=True) r = requests.get(url, {'job': f'robotpkg-{project}-{VERSION}-release'}, stream=True)
try: try:
z = ZipFile(BytesIO(r.content)) z = ZipFile(BytesIO(r.content))
path.mkdir(parents=True, exist_ok=True) path.mkdir(parents=True, exist_ok=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment