Reputation: 346
( I m not a DevOps/SCM )
We currently use Subversion and are in the process of migrating to git.
Our project has multiple areas and currently each area is set up as an independent job in our Jenkins.
If we migrate svn to git, how many times will Jenkins do a git pull? Will it pull the same repository for each job independently?
If the developer makes a change and pushes it to the repository, which job will get triggered? ( IOW, how will Jenkins know that the change belongs to JobA and not jobB )
Any help will be much appreciated
--sony
Upvotes: 1
Views: 420
Reputation: 1323095
If your SVN to Git migration result in one giant monorepo, then yes, Jenkins would pull from the same Git repository, one per Jenkins job.
You could then try and make sure the Jenkins job only triggers for particular directory commit.
But the best practice is to split your SVN repository into several Git repositories (one per "area"), allowing a finer-grained control when it comes to Jenkins.
Upvotes: 1