From 5a38208e3b3899231a3a813639498843676bdade Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 2 Aug 2018 16:25:00 +1000 Subject: [PATCH] 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 --- roles/trigger-readthedocs/tasks/main.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/trigger-readthedocs/tasks/main.yaml b/roles/trigger-readthedocs/tasks/main.yaml index 59e11562d..108d67f44 100644 --- a/roles/trigger-readthedocs/tasks/main.yaml +++ b/roles/trigger-readthedocs/tasks/main.yaml @@ -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