Statistic values are not always persisted
I raised an issue for this (TW-90199) but thought I would ask the same question here, in case the community can offer some advice.
We are finding the “##teamcity[buildStatisticValue” instruction is quite unreliable. Often statistics are not being recorded, in which case they are visible in the build log (which is of little use as we want the data to be graphed). When statistics ARE recorded they are visible on the graphs and are not visible in the build log (TeamCity does this automatically when recording statistics).
We've tried adding newlines around the statistics statements and flushing STDOUT before and after the statement but to no effect.
There is quite a lot of text printed to the build log around the same time but this cannot be avoided as it is necessary output for test debugging purposes.
Can anyone suggest a resolution? Is there another way we could record the build statistics other than the logging method?
Please sign in to leave a comment.
I see that there are problems with reproducing the issue on our side (please see the comment in the issue you created), could you please reply there?
I will also try to reproduce it in the meantime.
Best regards,
Anton
Just want to let you know that we aren't able to reproduce the issue on our side at the moment, and the YouTrack issue you raised was assigned to the development team for a deeper look. Please keep an eye on the updates in the issue.
Best regards,
Anton
Thanks Anton, I'll track the issue there.