refactor(gate): refactor rtd trigger

This patch set uses the same mechanism as airship-deckhand to trigger
the readthedoc publish job in the post pipeline.

Change-Id: If750baebef23bf84c7ccf5d8e3ab6335f97bdfb6
Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
Tin Lam 2018-06-21 10:55:48 -05:00
parent 164f4aa7d7
commit 1ffdf2ef57
2 changed files with 7 additions and 6 deletions

View File

@ -107,14 +107,15 @@
- job:
name: airship-armada-doc-publish
timeout: 1800
run: tools/gate/playbooks/rtd-build-trigger.yaml
description: |
Publish documentation on airship-armada.readthedocs.io
run: tools/gate/playbooks/readthedocs.yaml
nodeset: airship-armada-single-node
secrets:
- rtd_credential
- airship_armada_rtd_credential
- secret:
name: rtd_credential
name: airship_armada_rtd_credential
data:
id: !encrypted/pkcs1-oaep
- CUGL2+J0WfXsx2xyJRWs9QJHkEMlJkILygoYwJNlhotRm67UDhD1XZINU99BUkdwhow8F

View File

@ -17,6 +17,6 @@
- name: Trigger RTD job
uri:
method: POST
body: 'token={{ rtd_credential.token }}'
url: 'https://readthedocs.org/api/v2/webhook/{{ zuul.project.short_name }}/{{ rtd_credential.id }}/'
body: 'token={{ airship_armada_rtd_credential.token }}'
url: 'https://readthedocs.org/api/v2/webhook/{{ zuul.project.short_name }}/{{ airship_armada_rtd_credential.id }}/'
follow_redirects: all