Properway of passing changelist/label to a build chain
I'm new to TeamCity and wanted to setup a build chain on a project where I could either build latest or build a specific cl/changelist.
I added the same Perforce VCSRoot to my projects and setup the option "Label/changelist to sync" with a parameter "%PERFORCE_LABEL%"
Project B is dependant on project A.
Project B as parameter PERFORCE_LABEL set to Prompt/Text and defines also "reverse.dep.*.PERFORCE_LABEL"
Project A and B "Build number format" are set to "%build.vcs.number%"
When I run project B it looks like it's working BUT
- Project A still shows are warning about %PERFORCE_LABEL% missing on the configuration
- Project A has a red VCS Icon next to the project because of the monitoring of pending changes missing the %PERFORCE_LABEL% variable
Am I suppose to set this up differently ?
Please sign in to leave a comment.
Thanks, but this doesn't allow Perforce Labels to by displayed also right ?
I think I finally figured out that I also needed the parameter to exist in each chained build.
I want to be able to set a changelist/label for a Perforce VCS on a build chain and ensure that all build are using the same version in the chain.
The way I did it seems to be working but I wondered if it was the "correct" way to do it