The build in Stash doesn't show the most recent build result:
I use TeamCity as CI with a plugin that uses the build status API from stash. In TeamCity I have a "Pull Requests" build which builds refs/pull-requests/*/from and refs/pull-requests/*/merge-clean.
Do I build the wrong branches? In case of a pull request, which branch does Stash look at to define the build status?
Thanks for your help!
So that screenshot was taken from the commits list (maybe on the PR). In which case the build has associated itself with that changeset correctly? How do you mean it doesn't have the latest - were you expecting a different result, which seems a little strange given that building from the same commit should have the exact same result? Or are you seeing another commit that doesn't have any status at all?
The branch would have been the 'from' branch - you won't ever see the merge-clean commits from the Stash UI. Stash will also use the 'from' branch (ie the most recent commit) to display the build status on the overview page.
Apologies, I know that probably doesn't help - I might need a little more information.
PS. Alternatively, you're not talking about the red icon on the commits list are you? We try and pick the most 'important' aggregate status. So if you have a failed build, any failed build, it will always show red. In that case you would need to fix the WPPR-25 build before the PR goes green.
Actually I was speaking about the red icon ;-)
In my case the build was red because of a configuration error in TeamCity. So I fixed the configuration issue in TeamCity and ran the build again. After that it was green and I was expecting a green build icon in Stash too.
But as you said, a commit shoud always have the same build result so it's not too bad. Now that my build configuration is working it should be ok.
Thanks for your quick answer!
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs