zuul-jobs/playbooks/python/readthedocs.yaml
Jens Harbott cc402a0b26 Follow redirects when triggering readthedocs build
The URL we post to returns a redirect to
https://readthedocs.org/projects/$short_name/builds/ so we have to
follow that.

Change-Id: I26c907df0ab4ec6eb40bce74f590cfab6eec38c7
2017-10-24 08:58:30 +00:00

8 lines
207 B
YAML

- hosts: localhost
tasks:
- name: Trigger readthedocs build URI
uri:
method: POST
url: 'https://readthedocs.org/build/{{ zuul.project.short_name }}'
follow_redirects: all