Reputation: 769
I have a multibranch pipeline project in Jenkins. My Jenkins job mainly consists of building dotnet-core docker images and pushing them onto the docker repository then starting containers on a Jenkins slave using a compose file. In my VS solution file, I have 6-7 projects in separate folders. The number will increase. All of them are docker images that will run in containers.
At the moment, I use dotnet publish
for each project then build the images using the compose file. The problem is, I need to build all of them even when there are no changes in the image. I want to build only the apps which are not changed. Is there a way for me to filter out the unchanged folders and build only them?
Upvotes: 0
Views: 232
Reputation: 788
I think it may sense to separate into different repositories and have different jenkins jobs for each one. Then you split your microservices architecture in different repositories and you can even test each microservices running the docker images for each microservice.
This is the way we are doing in my company. And for me, it looks better at the end, but it can be a big effort at the beginning.
Upvotes: 1