Is Jenkins going to pull the code from GIT/Repository every time the code is built?

I have a question about 2 main things.
I observed that the code is being pulled from the repository every time , even though there is no change in code. Also a new docker image is created for every build . This process is time consuming and also
memory is stacked up easily. Is there any alternative to avoid this ?

Hi Deepa.reddymg,

In general code will be pulled only if you make any changes to the code in gitrepo. Hope you might have done proper configuration for that.

Creating new docker image in every build, based on every release/code change is normal in a CI/CD practice. It won’t be time consuming, since Docker is using it’s build Cache to build images in a fast, efficient, and reliable manner.

Docker Cache

Thank you.

Thank you for answering. Do we have a complete project for Devops in KodeKloud platform ,which includes all the CI/CD tools and containers? I only see separate courses for each item (Jenkins.Git,Docker,Kubernetes). It would be of great help if you can help me to find the complete project.