How to sync to a perforce label in TeamCity

Hello,

I have two projects in TeamCity. The first one is labelled after a successful build. The second one depends on the first one and I want to have it synced to the label produced by the first one.

I googled around and found this related thread: http://devnet.jetbrains.net/message/5221098;jsessionid=1A5D5BE9ACE96C00CA86166DEFE22446 . It says this is possible since TeamCity 4.0. I am using teamcity 5.1 with perforce and  I can't find out how to setup the second build to pull the source labelled by the first one.

I would be very grateful for any advise. Thank you in advance.

Regards
Rambius

2 comments
Comment actions Permalink

Hello Rambius,

   In TeamCity you cannot sync to a Perforce label.

   What you can (since 4.0), is to ensure that two build configurations are using exactly the same version of sources.

   I.e. if you want that two configurations use the same version of sources (and I believe this is what you want to achieve), you set a snapshot dependency between these two configurations. After that, TeamCity ensures that the same version of the sources will be used in the build chain.

  If first build in the build chain produces artifacts, and you want to use them in the dependent configuration, you can achive this as well.

  Please read more about snapshot dependencies and how to configure them in our documentation.

  Hope this helps,
  KIR

0
Comment actions Permalink

Hello Kiril,

Indeed I discovered the snapshot dependencies and I configured one for my project. It seems to work.

Thank you very much.

Regards
Rambius

0

Please sign in to leave a comment.