How can I configure a job to start a job only if changes have been committed to a subdirectory in git?
The first stage in my pipeline is a build stage. I have multiple components in my repo. I'd like to build each in parallel, but a given commit may only change one component, in which case I'd like to avoid rebuilding the others.
Comments
6 comments
Ben,
I believe you would need to have multiple pipelines for this scenario because a pipeline only has 1 set of materials. In the component pipeline could you specify the subdirectory in the URL of the git materials?
Robert
I'm not sure that would work. Git doesn't support subdir checkout in the same way as Subversion.
That's unfortunate. How about specifing the Blacklist, or Branch of the git materials instead?
There's a blacklist? In Go? How do I configure it? I can't find any mention in the docs.
Branch isn't an option unfortunately.
Thanks for all your help.
You can find the Blacklist on the Edit Material screen. If that doesn't work, consider placing your component in a seperate repo.
HTH,
Robert
Ah! I missed that. I'll see if I can use that somehow.
Thanks Robert.
Please sign in to leave a comment.