How to forward the log builds

I would like to send the raw log data as a slack attachment for teams to more easily collaborate… how can this be achieved?

Found a way to do it… make a call using the JobID getting the trace file and then send it to slack… still not perfect though, since i can’t get the previous JobID on the pipeline in a easy easy way… would be nice to have an environment variable with the previous job id.

Perhaps there is a simpler way to do it, but so far this is the “hack” that meets the requirements.