curl trigger + snapshots + environment variables.

Answered

Hi,

I am trying to setup TeamCity so that it does a...

  • build
  • install
  • test

They are separate configurations which are dependant on each other in the reverse order. I'm using curl to externally trigger test which calls the snapshots. However, I'm also using a branch build whose name will change over time. I'm using an SVN repository which is setup thus...

svn://svnverver:3691/branches/%env.branchName%

I can set env.branchName externally and trigger the chain but env.branchName does not get populated for the dependencies. I'm therefore seeing the build phase trying to checkout

svn://svnverver:3691/branches/

and

svn://svnverver:3691/branches/env.branchName

This happens because env.branchName is only populated by the external call but not for the dependancies.


How do I setup a parameter from the external trigger that's global to the whole project so that env.branchName is populated?

Thanks.

0
2 comments

Hello Peter,

Build parameters are defined per build, so it is expected that a parameter from one build configuration does not have the same value in the other configuration. However, Snapshot dependencies allow you to use dep. and reverse.dep. parameters between linked configurations. These parameters can reference a value of a parameter from configurations in the build chain. Is this what you are looking for?

0

Hi Mikhail,

Yes, that's just what I was looking for. Thank you.

Peter.

 

0

Please sign in to leave a comment.