Hi!
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!
Hi Alain,
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.
Charles
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.
Hi Charles,
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!
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.