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.

"bin\release\mydll.dll" "bin\release\mydll.dll.config" "bin\release\myexe.exe" "c:\output\mydll.dll" "c:\output\mydll.dll.config" "......\output\mydll.dll" "......\output\mydll.dll.config" "......\output\myexe.exe"

also define system.out.artifacts destination directory want re-create artifacts. examples

"c:\temp\setup"

svn teamcity

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -