Issue
I'm trying to find the directory where jenkins stores the git repository, I need to be able to setup the AWS dev tools so I can run the shell command to aws.push up to beanstalk. For some reason the directory with the working files appears to have incorrect branch info associated with it.
[email protected]:~/jobs/myPHPapp/workspace$ git status
# Not currently on any branch.
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# default/
The branch jenkins imports from github is my 'dev' branch, weird that it only shows master. Does Jenkins save another copy of the repository elsewhere?
Solution
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.
Answered By - Marcin KoziĆski
Answer Checked By - David Marino (JavaFixing Volunteer)