Our pipelines sometimes fail for expected reasons, but which are only obvious to DevOps people (like publish failure because of artifact version conflict which manifests itself with an apparently unrelated error).
Is there a way to set a user-friendly status message in the pipeline details page, like what happens when a step runs out of memory? This would avoid developers having to reach out to IT to interpret the failure from thousands of log lines every time even if we try to catch the error and output something less cryptic.
Hi François,
I assume that by 'details pane' you are referring to the following?
The message displayed in there cannot be changed manually.
I see that dynamic pipelines provide an option to set this message:
However, I haven't been involved with dynamic pipelines development, so I'm not sure if this can be set programmatically depending on the errors of certain commands of your build.
You could reach out to the group 'Forge for Bitbucket Cloud' to ask if your use case can be solved with dynamic pipelines (the team checks the questions there):
Are you looking to do this programmatically or have someone manually set a message?
Kind regards,
Theodora
I think that the general rule is that the pipeline "Build" view (if this is what you mean) captures everything that is written the standard output (stdout).
If you can catch the error you are trying to make easier to understand, and write to the stdout, it should work.
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.