Every pipeline execution has their own URL (I think is a kind of UUID?).
It's possible to get that URL or UUID to compose the URL?
I have a command inside my tasks triggering messages using a REST/API call, but I want to include a link to the pipeline that triggered the message.
You can try doing it with default variables in pipelines. The ones you need are:
$BITBUCKET_GIT_HTTP_ORIGIN
- the URL for the origin (e.g. http://bitbucket.org/<account>/<repo>
).
$BITBUCKET_BUILD_NUMBER
- the unique identifier for your build.
For the time of writing this answer, the following combination works:
$BITBUCKET_GIT_HTTP_ORIGIN/addon/pipelines/home#!/results/$BITBUCKET_BUILD_NUMBER
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With