Using a Git context, kaniko will fail if the repository already exits in the local filesystem. #1118
Labels
area/context
area/jenkins-parallel
issues related to kaniko usage in jenkins
kind/enhancement
New feature or request
Actual behavior
My use-case is I'm using Kaniko in Kubernetes to pull source from GitHub, build an image and push to a local repository. My Jenkins pipeline creates a Kaniko pod and will keep it around for a specified amount of time and reuse it if needed. When it gets reused to build from the same git repository if gives the error 'Error: error resolving source context: repository already exists'
Expected behavior
For a git context, it should ignore any exiting files and overwrite them with a new clone, or a pull from the repository.
Additional Information
The repository I am using is here https://github.com/rkamradt/HelloK8sBuild
In particular, the Jenkinsfile creates the kaniko pod to be used to build images.
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: