You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm looking at consolidating a bunch of fragmented CI processes from other SCM / CI platforms into Bitbucket cloud Pipelines.
Does Bitbucket have anything similar to TeamCity Service Messages or GitHub Workflow Commands that parses build logs for specially formatted stdout / log output that can be used to control build behaviour? I've not been able to find any documentation, but maybe I'm missing something.
A simple example would be calculating and updating the current build number with a TeamCity Service Message, or setting the build to "failed", but I'm interested in whether there's any documentation for a general feature rather than trying to solve these specific examples...
I'm afraid that we don't have something similar in Bitbucket Pipelines.
For the specific examples you mentioned:
- a pipelines build's number cannot be modified
- a pipelines build will fail if a command exits with a non-zero code, so you can force a build to fail with an if statement that returns a non-zero exit code if a condition is not met
You would need to do the parsing yourself though.
If there are some other specific examples/actions that you're interested in, please feel free to let us know, as there might be another way to achieve them.