teamcity - How to find builds triggered via svn commit -
teamcity - How to find builds triggered via svn commit -
i new teamcity. have project setup in teamcity more 100 build configurations many of dependent on each other. create setup executable file project these build configurations.
considering scenario there upgrade product , few components changed, need changed components in setup. want identify builds triggered due svn commits , not via dependency triggers. want utilize artifacts svn build triggers only.
is there way can find builds triggered via svn commit , include these builds in setup create executable?
i found way figure out how build triggered. can using parameter teamcity.build.triggeredby
. have added next command line
build step. next code check if build triggered via svn commit.
if "%teamcity.build.triggeredby%" == "subversion" ( %%i in (%system.paths.artifacts%) re-create %%i %system.out.artifacts% /y )
you have define system.paths.artifacts
system properties
. next few examples.
also define system.out.artifacts
destination directory want re-create artifacts. examples
svn teamcity
Comments
Post a Comment