Debugging for readthedoc web ping

Unfortunately this is failing in the gate, and I have no idea why (it
works locally ...).  Add some debugging.  Since this is called with a
secret from a post-review only job in the trusted project-config repo,
there's little way to self-test this without committing things :/
Hopefully this sheds some light ...

Change-Id: I7d661f8eefe25d90b5eded309062f32344b3379c
This commit is contained in:
Ian Wienand 2018-08-02 16:25:00 +10:00
parent 8fc3461f59
commit 5a38208e3b
1 changed files with 6 additions and 2 deletions

View File

@ -15,6 +15,12 @@
msg: password is required when using rtd_credentials.username
when: rtd_credentials.password is not defined
- debug:
msg: 'https://readthedocs.org/api/v2/webhook/{{ rtd_project_name}}/{{ rtd_webhook_id}}/'
- debug:
msg: 'username <{{ rtd_credentials.username }}>'
- name: Trigger readthedocs build webhook via authentication
uri:
method: POST
@ -24,8 +30,6 @@
# NOTE(ianw): testing it seems the API doesn't respond with
# 401 so this is required
force_basic_auth: yes
# avoid logging any credentials
no_log: true
- when: rtd_credentials.integration_token is defined and
rtd_credentials.username is not defined