I'm trying to get the latest pipeline build status for a slack webhook. In order to do that, I need to get the latest pipeline ID from the API.
I tried doing this in a bitbucket-pipelines.yml file (for the current running pipeline to then send a slack notification) using the $BITBUCKET_PIPELINE_UUID default variable but it keeps returning null. Maybe it returns null because the pipeline isnt finished yet?