Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect a specific file change in TeamCity

Tags:

teamcity

We have have certain files in our solutions and I would like to detect changes to those specific files.

If a change is found to a specific file I would like to receive an email.

Is this possible via teamcity or mercurial (our VCS)

like image 255
Eli Perpinyal Avatar asked Dec 30 '25 18:12

Eli Perpinyal


1 Answers

To achieve this with TeamCity, you can do this:

  1. Setup a build configuration, attach your VCS to it.
  2. Set your checkout rules to match only files you are interested in.
  3. Add a build step (maybe, do some tests?)
  4. Add VCS trigger.
  5. Subscribe to "build start" event of this build configuration in "My Settings & Tools"
like image 64
Nikita Skvortsov Avatar answered Jan 01 '26 15:01

Nikita Skvortsov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!