Best way to tag files of a project together?

Team - I am trying to integrate github with Jenkins. The question I have is - how do i pull only a set of files from github repository? I dont want all the files in the repository for the CI - build phase. For example, my repository would have files for Project X,Y & Z, but I need only the files that belong to project Z.

  1. How do i tag the files associated with project Z in the github repository (master branch)?
  2. How to get tell the jenkins to only pick those files from the github repo?


1 Like

It sounds like you want to do a sparse checkout. You can find basic information on how to it in the topic on how to download a single folder from a repo:

If you want something more complex than a single folder, you can find out more information in the documentation on the git sparse-checkout command.

I hope that helps!