How to Capture exact Application folder name where change is detected by Teamcity
Hi,
I am new to TeamCity so please bear with me if question is absolutely basic.
I would like to know how i can capture name of application folder where development change was detected by Teamcity so that i can use that application name to proceed with further build.
Set up which i have is:
1) Team City detects code change in GIT repository , let say application name changed is , bw-accsrv-esb.
2) Moment detection is done , Ant script is called in background which will take application name as input and then using this input it proceeds with build script.
As of now i am hard coding application name in a file from where value is sent to ant script as said in point 2 above.
But here i want that application name should get captured by team city when developer makes change on that given application.So that dynamically i can use that application name and call ant build script with captured application name.
Example: If developer makes change in application , bw-accsrv-esb , then somehow i want this name to be captured so that i can pass this name as input in ant build script
I would be thankful if you can guide me how i achieve this.
Thanks
Shrijeet Sinha
Please sign in to leave a comment.
Hi,
TeamCity detects and stores changes in terms of modified files and not applications. You can get a list of changes for the build using REST request on "/app/rest/changes?locator=build:(id:%teamcity.build.id%)&fields=change(files(file(file,relative-file)))".
Do you know that you can create build configuration template for your ant build and separate build configurations for each of your applications? You can have configuration parameter to hole value of the application name in each of the build configuration and, for instance, configure VCS trigger to watch for changes in particular folder?