Job output not added to failure template
Rylon opened this issue · comments
Hi,
I'm running Travis Buddy locally so I can try it out with some private repositories - I have everything wired up between Travis and the bot, so when a build fails, I get a comment added to the PR with the initial text at the start "Hey @, Please read the following log" etc, however the job content is missing.
I don't see any errors in the app logs. Do you have any suggestions on how I could debug this further?
Thanks!
By the way, I tried using with or without the insertMode=update
flag, and I tried the default and raw template. Current template is this:
Hi @{{pullRequestAuthor}},
Please read the following log in order to understand the failure reason.
Commit your fixes to this branch, and the PR will be updated automatically.
{{#jobs}}
{{#scripts}}
{{&contents}}
{{/scripts}}
{{/jobs}}
End of message.
I see everything except for the content in braces.
Hi, so actually it turns out this is working as expected - I hadn't connected the fact that I'm using g a private repo, and therefore going to Travis-ci.com means that the bit of code responsible for retrieving the build logs fails (as it tries to go to Travis-ci.org). The weird thing is that this section of the pipeline fails silently with no output, so it wasn't obvious to me at first what the problem was.
Anyway I forked it and modified it to support Travis-ci.com with an API token and now everything is working as expected, thanks!