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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are very welcome! Please feel free to reach out if you need anything else!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I actually created a separate question/thread instead which is more about how to utilize after-script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Going back with the Bitbucket Downloads question, if we have existing file example badge.svg then we upload a new file using
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bitwise DEVS!
If you upload a new file with the same name as an existing file in the Downloads, the new file is going to replace the existing one.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.