3

I have a Solution like so, repo'd in Git:

AwesomeSln
---Web.csproj
---Services.csproj
---Core.csproj
---UnitTests.csproj
---SDK.csproj

Most of the solution is Web, and the CI is handled by Azure. Tests run, web is published, wutevz.

But the SDK Project is a related NuGet package that offers help consuming this web project. The NuGet for this company is set up using TeamCity.

So what I'd like to do, is have TeamCity trigger a NuGet build if there is a change to the SDK Project. But not whenever any willy-nilly checkin' happens.

Any way to trigger a NuGet build only if one specific project changed?

Suamere
  • 5,691
  • 2
  • 44
  • 58

1 Answers1

4

How are you currently triggering builds? I would assume you have a VCS Trigger in place. If so, then just add rules to only build the project you are interested in and ignore the rest.

Assuming each of the projects you listed is in its own directory, something like this should do it:

+:SDK/**

On the VCS Trigger dialog box, you have to show advanced options and then enter the rule where it says "Trigger rules:"

CoderDennis
  • 13,642
  • 9
  • 69
  • 105
  • Eh!? I imagined those rules as file rules, and I only extended it to file names/types. For some reason it didn't occur to me that I could use the folder paths. Thanks! – Suamere Feb 24 '16 at 13:29