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 ? 

0
4 comments
Hi! If you simply want to be able to select the changelist, which should be checked out from VCS when you run the build chain, you can Open the 'Run custom build' dialog by click clicking the ellipsis (...) next to the Run button, go to the Changes tab and select the required change in the 'Include changes' dropdown.
0

Thanks, but this doesn't allow Perforce Labels to by displayed also right ?

0
I am not sure I understand the question. Could you explain in a bit more detail what you expect to happen when you set the value through the `reverse.dep.*.PERFORCE_LABEL` parameter, and what you use as the value for that parameter?
0

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

0

Please sign in to leave a comment.