How to send file into Slack with failed logs?

Hi there!

I want to build android apk with openjdk 8 and gradle. I created pipeline as like in this manual . But action that make Sign Android aplication crashed, so I want to upload file that contain $BUDDY_FAILED_ACTION_LOGS into my Slack. But I can’t understand how to catch java failed logs into file, where to store it. Can anyone help me with examples?

Hi there,
Please add the Local shell action in the on failed section in your pipeline and run:
echo $BUDDY_FAILED_ACTION_LOGS > failed.log
Then add the next action in this section – Slack, and enter failed.log into file attachments.

1 Like