Best way to tag files of a project together? #22116
-
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.
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 are willing to use git to do this, you can do a sparse checkout. We are going to start by creating an empty git repo locally, and then add the repository we want as a remote. This allows us to easily just checkout the folder we want mkdir directoryName cd directoryName git init git remote add origin -f repoUrl If you want something more complex than a single folder, you can find out more information in the documentation on the I hope that helps! |
Beta Was this translation helpful? Give feedback.
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: