I've had to revert to a previous commit in my master branch in git which has meant I've had to force push the changes up to Teamcity.
It's seems as though Teamcity has got into a bind and it thinks that any newly triggered builds are actually building an older version of the project (it's correct, I reverted from Build Number 750 to 747)
When running the build it displays this:
When I look in the history it looks like this (all builds after I reverted are grey)
Is there anything I can do to make Teamcity think I am building the latest? Maybe clearing logs or something similar?
You could always delete the builds for the reverted commits that no longer exist. To do this go to the build details page then click "Actions" > "Remove".
In a more recent version of TeamCity (9.1.3), we managed to get around this by triggering a custom build with the following parameters:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With