There is a Bitbucket project with roughly 40 repositories. I would like to add a Jenkins file with lint checking:
staticTests {
lintTargets = ["*.yml", "roles"] }
to each repository, because cloning each repo, adding the file, then committing and pushing to each repo is a tedious and time consuming task.
I did some searching to check if there is an accepted way to do this automatically, however I could not come up with anything.
EDIT: I believe this question is different to pull/push from multiple remote locations due to involving different repositories rather than different remote locations for the same repository.
tl;dr: How to add a file to multiple different git repositories at once?