From ead78fed13c0e7dcd53ce0f5b2314c361d6148b8 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 28 Aug 2017 18:58:25 -0500 Subject: [PATCH] Add trigger-readthedocs job It's really easy to trigger a build on readthedocs. It doesn't even need a node, since it's just a single POST. Change-Id: I8c576c7a26ab123bd70f7a025d8a49a5cb3e2432 --- playbooks/python/readthedocs.yaml | 6 ++++++ zuul.yaml | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 playbooks/python/readthedocs.yaml diff --git a/playbooks/python/readthedocs.yaml b/playbooks/python/readthedocs.yaml new file mode 100644 index 000000000..9c86b23ba --- /dev/null +++ b/playbooks/python/readthedocs.yaml @@ -0,0 +1,6 @@ +- hosts: localhost + tasks: + - name: Trigger readthedocs build URI + uri: + method: POST + url: 'https://readthedocs.org/build/{{ zuul.project.short_name }}' diff --git a/zuul.yaml b/zuul.yaml index 27a7be872..0235981b8 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -134,6 +134,13 @@ at least a ``username`` and ``password`` attribute. post-run: playbooks/python/upload-pypi +- job: + name: trigger-readthedocs + description: + Send a trigger to the readthedocs url to tell it to build docs + nodes: [] + run: playbooks/python/readthedocs + - job: name: multinode description: |