project-config/playbooks/publish
Ian Wienand 425b091a1e Add trigger-readthedocs-webhook job
This job is to trigger readthedocs via their new API

The old API was quite simple in that anyone could hit the end-point
and trigger a new build.  The v2 API now requires authentication and a
unique id for each project we wish to update.

If projects wish, they can directly use the new "trigger-readthedocs"
role (from the dependent change) and create their own jobs, providing
their username/password or webhook authentication token directly from
a secret in their project playbook.

This job, however, uses the infra secret for the "openstackci" user to
update the docs.  Projects that wish to take this route require some
minor setup, but don't have to worry about managing new jobs or their
secrets and gain some benefits in having the openstackci user as a
backup admin.

To use the trigger-readthedocs-webhook job, projects will need to do
the following:

1) add openstackci user as an admin of their RTD project

2) generate an webhook via the "Integrations" dashboard page on the
   RTD project

3) provide the id from that webhook URL in job or project variables.
   This webhook id is not private; it is useless without
   authentication (it appears to be a global monotonically increasing
   integer for each webhook generated).

4) include the job. gerrit-dash-creator is populated with the new job
   for initial testing.  Other projects are currently using the
   "docs-on-readthedocs" template.  Change
   I3b65813671961d07c0a743685c537ad1df4bf68 proposes switching the
   template to use this new job.

Change-Id: Ic34ea5ead26a477a1cc5f8b25fd2ce1949c1dc13
Depends-On: https://review.openstack.org/579434
Depends-On: https://review.openstack.org/584230
2018-07-31 16:17:19 +10:00
..
api-guide.yaml Use sphinx_output_suffix 2018-01-02 19:55:03 +01:00
api-ref.yaml Use sphinx_output_suffix 2018-01-02 19:55:03 +01:00
contributor-guide-afs.yaml Use playbooks/publish/openstack-afs everywhere 2018-02-18 08:46:49 +01:00
deploy-guide.yaml Use playbooks/publish/openstack-afs everywhere 2018-02-18 08:46:49 +01:00
infra-index.yaml Use playbooks/publish/openstack-afs everywhere 2018-02-18 08:46:49 +01:00
install-guide.yaml Use sphinx_output_suffix 2018-01-02 19:55:03 +01:00
manuals.yaml Use playbooks/publish/openstack-afs everywhere 2018-02-18 08:46:49 +01:00
openstack-afs.yaml Refactor playbooks/publish/openstack-afs.yaml 2018-02-18 08:46:40 +01:00
openstack-artifacts.yaml Upload artifacts only on success 2017-11-01 07:19:52 +01:00
openstack-specs-site.yaml Fix missing "role:" mapping keys 2017-10-26 14:46:04 -07:00
openstack-specs.yaml Use sphinx_output_suffix 2018-01-02 19:55:03 +01:00
placement-api-ref.yaml Use playbooks/publish/openstack-afs everywhere 2018-02-18 08:46:49 +01:00
publications-index.yaml Use playbooks/publish/openstack-afs everywhere 2018-02-18 08:46:49 +01:00
publications.yaml Use playbooks/publish/openstack-afs everywhere 2018-02-18 08:46:49 +01:00
pypi.yaml Upload to pypi if pre / run was successful 2017-10-23 13:48:45 -04:00
releasenotes.yaml Use playbooks/publish/openstack-afs everywhere 2018-02-18 08:46:49 +01:00
service-types.yaml Fix missing "role:" mapping keys 2017-10-26 14:46:04 -07:00
static.yaml Rework base-publish-static jobs using protected 2018-02-17 17:51:27 +01:00
trigger-rtd.yaml Add trigger-readthedocs-webhook job 2018-07-31 16:17:19 +10:00
wheel-mirror.yaml Split build-wheel-mirror into publish-wheel-mirror 2017-11-17 11:21:52 -05:00
zuul-afs.yaml Add publish-zuul-docs job 2018-03-22 10:05:17 -07:00