TeamCity build revisions from perforce

I can not figure out how to configure VCS Root TeamCity to work with Perforce. For example imagine that I have a set of Revision (Changelist):

100001
100002
100003
100004
100005
100006

As a result, I want to build the changes that are in revisions 100001-100003 and 100006. Skip the changes 100004-100005. What I need to specify in Label/changelist and Extra sync optionsHow to do that in a right way? I need label or what?

0
1 comment

Hi Anton,

 

If you set up labels, you can pass them as the label to be built. The recommendation here would be to set it up as a parameter, give a default value to the parameter, and then override it by running a custom build. Choosing multiple cherrypicked revisions is otherwise not possible.

 

There would be another workaround. You could disable automatic checkout of sources, then as a first build step, run a script that checks out the revisions you are interested in, although this would require you to set them up as parameters or in a way that can be read in the first bulid step.

0

Please sign in to leave a comment.