I've got 200+ repositories which should be built and tested. These repo's do not contain software but configuration files which also have version management.
The software to build and test them is in a separate repository because its the same for all 200 repo's.
I really don't want to create 200 identical bitbucket-pipeline.yml files because thats not DRY.
I want to be able to run one pipeline but then for each of the 200 repo's. So if one repo changes I want to trigger the one pipeline but I guess I need to be able to tell it what repository has changed.
Is this possible?
I think that is a good way te reuse components but I'm not sure if this will prevent creating 200 bitbucket-pipelines.yaml files in my use case.
I need one pipeline job which I can trigger when one of the 200 repo's change and somehow pass the job env vars containing the repo that was changed.
The job will then know the repo that changed, clone it, and run the tests on it.
If you have advise on how to do this I would be very happy to hear about it.
Hi @davina ,
I know it has been a while since this post was created, but by any chance, is there a feature in the works that would prevent us from creating 200 bitbucket-pipelines.yml identical files for each repo like @Hans Pikkemaat mentioned above (i.e one pipeline to handle multiple repositories)?
AFAIK, the custom pipeline is just a public Docker Hub image that you could create. I think they are also introducting other options for source of pipelines.
Example usage for Nancy Check pipeline from one of our repos below:
name: Nancy check
- pipe: sonatype-community/nancy-scan:0.1.23
If you have some secret logic in your build, you could use private docker image as build image to encapsulate it all:
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events