Matrix builds: mismatched build.number

I have a build config using the Matrix Build feature, which uses %system.build.number% to identify results sent to an external system.

Usually the %system.build.number% for runs of all the generated build configs matches the build number of the top-level build. I've just noticed that that isn't always true, however.

For example, I have a run of the top-level config with build number #439, and the runs of the generated configs are numbered either #439 or #440.

The next run of the top-level config (#440) has all its generated runs numbered #440, so that means some generated configs have two runs numbered #440.

Is that expected behaviour?

0
1 comment

Hi,

The Matrix Build feature in TeamCity generates virtual build configurations, and promotions depend on the top-level build. Each of these generated build configurations is a separate entity with its own build counter, so it can happen in some circumstances. In the comments of the related bug in our issue tracker you can find a possible workaround:

https://youtrack.jetbrains.com/issue/TW-88395

 

 

0

Please sign in to leave a comment.