Build Configuration not picking up build number from pull requests
Our setup has a couple of build configurations
A - does the build
B - Deploys build to environment 1
C - Deploys build to environment 2
D,E...
A is triggered when pull/merge request is done, and that works fine and it has the same number for build and published artifacts (nuget). B has a snapshot dependency on A and also a build number dependency (%dep.[build_config_A].build.number%) and it is triggered manually. Problem is that the build B picks up the build number only from merged builds from A but picks up the latest artifact from the latest build. We need it to pick up all the build numbers, from both pull and push requests. In the log for this example below it shows that build B 0.3.987 published artifact 0.3.993. Any suggestions why this might be happening?
Please sign in to leave a comment.
Hello Branislav,
What TeamCity version do you use? There was the related bug fixed in 10.0.4 version. If you use not the latest version, please upgrade and let me know whether the issue is reproduced after upgrade or not.
Hi Alina,
Our current version is 10.0 (build 42002). We will update it in next couple of days an let you know is the problem fixed.
Best regards,
Branislav Knezevic
Hi Alina,
It actually took more than couple of days to do the upgrade but we have finally done it today and unfortunately I have to report that the same issue is still present.
Build B is still picking up build numbers only from Build As which are done on integration branch and not builds which are done by pull requests which came afterwords
Build A
pull request 0.4.25 published nupkg 0.4.25
pull request 0.4.24 published nupkg 0.4.24
pull request 0.4.23 published nupkg 0.4.23
Integration 0.4.22 published nupkg 0.4.22
Current:
Build B (has artifact and snapshot dependency on Build A)
build number: 0.4.22 runs deploy with nupkg 0.4.25
try's to create artifact 0.4.22 based on build number but fails as only artifact 0.4.25 is available
Expected:
build number: 0.4.25 runs deploy with nupkg 0.25
creates artifact 0.4.25 which is used in other build steps
I forgot to add, TeamCity is now on version 10.0.5