I have a pipeline setup to pull from a git repo, do some work, and then put to that repo. I have some other jobs in the pipeline that need to be triggered based on changes that have passed through the previous job, but they need to utilize the git resource “paths” option. For the git resource, there is the following note that discusses this:
Note that if you want to push commits that change these files via a
put, the commit will still be “detected”, as
putboth introduce versions. To avoid this you should define a second resource that you use for commits that change files that you don’t want to feed back into your pipeline - think of one as read-only (with
ignore_paths) and one as write-only (which shouldn’t need it).
I am having a hard time wrapping my head around this entirely. Basically, I have it set up now so that the first job takes a repo (e.g., git-repo-1) and then puts to that repo at the end of the job. I then have other jobs that read from the same git repo URL, but are an entirely different git resource (e.g., git-repo-with-specific-path). However, I cannot figure out how to utilize the “pass” flag for getting the repo.