So I have a GitHub repository with multiple .NET projects. My TeamCity currently downloads all the code, but then builds only the few projects I need. Is there a way to make it only download part of the repository?
You just need to setup your VCS roots once, and don't have to create one per project.
Then, for a given project, you need to edit checkout rules in the administration page.
-:. +:path/to/your/project/in/github
This way your project configuration will checkout only the relevant part of your github repository.
You can have more details about the checkout rules in the Teamcity documentation.
Just adding to what Sébastien Saunier wrote above: If you want that sub folder in Github to become your root folder of the build folder, than you have to add =>.
For Example:
-:.
+:subfolder=>.
Hope this helps, Guy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With