It's a Maven project using Java.
Hi Elizabeth and welcome to the community!
Are you referring to a status badge of a Bitbucket Pipelines build?
If so, and if your repo is public, you can use shields.io to generate a badge:
If your repo is private, you can generate your own badge during the build, upload it to Bitbucket Downloads, and then reference it in your README. You can see more details here:
Kind regards,Theodora
HiĀ @Theodora Boudale
We are currently trying to do this for the first time, is there a way to determine if a step(s) in a pipeline fails so we can generate an appropriate badge for it?Thanks!
Hi @Bitwise DEVS,
If you want to do that during the pipeline build, there is an option to add an after-script in a step:
The pipeline variable BITBUCKET_EXIT_CODE can be used in the after-script to determine if the script in the step has succeeded or failed.
If you want to get that info outside of Pipelines (e.g. in a script running on your server), this API endpoint will return the status of a build:
Thanks!
It looks like you're new here. Sign in or register to get started.