Jenkins git location Jenkins git location jenkins jenkins

Jenkins git location


You've got that right, Jenkins clones git repository to the job workspace in ${JENKINS_HOME}/jobs/<JOB_NAME>/workspace

You should try clearing the workspace and then starting another build. If that helps you can set up Jenkins to automatically clear the workspace after the build is done. If that doesn't help, you have to carefully inspect the console output that this job generates and maybe post it if you need further assistance.


As of Feb 2020, Jenkins stores the git repository in /var/lib/jenkins/workspace/folderName_jobname

(Jenkins 2.... on Ubuntu 18.04 LTS)