Add a readthedocs publish trigger to .zuul.yaml

This patch set adds a trigger on post to trigger a RTD job to start
building the documentation post-merge.

Change-Id: Icd0ad1670b0d239e601a4456f84cc46e2f28aaf2
This commit is contained in:
Felipe Monteiro 2018-06-20 17:40:47 +01:00
parent 2ac59980e7
commit f50abff695
2 changed files with 67 additions and 8 deletions

View File

@ -27,20 +27,21 @@
jobs:
- airship-deckhand-tox-py27-postgresql
- airship-deckhand-tox-py35-postgresql
# NOTE(portdirect): enable when voting enabled.
# - airship-deckhand-ubuntu:
# irrelevant-files:
# - ^.*\.rst$
# - ^doc/.*$
# - ^releasenotes/.*$
- airship-deckhand-functional-docker-py35
- airship-deckhand-functional-uwsgi-py35
- airship-deckhand-integration-uwsgi-py35
- airship-deckhand-docker-build-gate
post:
jobs:
- airship-deckhand-doc-publish
- airship-deckhand-docker-publish
- nodeset:
name: airship-deckhand-single-node
nodes:
- name: primary
label: ubuntu-xenial
- job:
name: airship-deckhand-tox-py27-postgresql
parent: openstack-tox-py27
@ -158,7 +159,7 @@
name: airship-deckhand-docker-build-gate
timeout: 1800
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: openstack-helm-single-node
nodeset: airship-deckhand-single-node
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
@ -176,7 +177,7 @@
name: airship-deckhand-docker-publish
timeout: 1800
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: openstack-helm-single-node
nodeset: airship-deckhand-single-node
secrets:
- airship_deckhand_quay_creds
irrelevant-files:
@ -195,6 +196,42 @@
static:
- latest
- job:
name: airship-deckhand-doc-publish
description: |
Publish documentation on airship-deckhand.readthedocs.io
timeout: 300
run: tools/gate/playbooks/rtd-build-trigger.yaml
nodeset: airship-deckhand-single-node
secrets:
- deckhand_rtd_credential
- secret:
name: deckhand_rtd_credential
data:
token: !encrypted/pkcs1-oaep
- ptw5Bg0LRV1LYhiv1Cqxphq3UZGYqNI7GVeTJBy5NiidvMRMk/Fvd1lDRevp52scwSHNy
1jDUR+XolB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ErJhPJQ0VeO9TM9MxenKAavMjYnX2m
ioXsLnq6c3bhVxDg3gOmqWrPtPe3VkHnN3hptYr79QKGg65VNCasrc6Y88IGH/nOQSKaB
KaJ9sAH4+80U7nvaK6KDOb+8Kvl4qavSSNwtQaSyeYdkviibTuO40Qpg4PO3KHqYq1VEb
SMfJSw4+n+aTdU/o4nQlmivTuN9D5MQY/7Bklw/Dro1R1nw0AjugBz0ZEmMFoQ=
- secret:
name: airship_deckhand_quay_creds
data:

View File

@ -0,0 +1,22 @@
# Copyright 2018 AT&T Intellectual Property. All other rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- hosts: primary
tasks:
- name: Trigger RTD job
uri:
method: POST
body: 'token={{ deckhand_rtd_credential.token }}'
url: 'https://readthedocs.org/api/v2/webhook/{{ zuul.project.short_name }}/{{ deckhand_rtd_credential.id }}/'
follow_redirects: all