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 installstep, otherwise run different build configuration, with
npm installstep.
Is that possible to configure?
Please sign in to leave a comment.
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