Trigger build configuration based on a file change

I'm using TeamCity for building my node project. My build  configuration is triggered by a git commit. It has several steps, and one  of them is

npm install
.

What I want is for TeamCity to recognize if latest commit mada  any changes to package.json file and only in that case fire up a build configuration with
npm install
step, otherwise run different build configuration, with
npm install 
step.

Is that possible to configure?
1 comment
Comment actions Permalink

Hello,

Yes, you can configure VCS trigger rules to limit the changes that trigger the build. For example to trigger build on changes in .json file you can use:
+:**.json

0

Please sign in to leave a comment.