I would also be interested in this. I assumed that th
e credentials::git-fetch-ssh:: settings would let me work with private repos, as long as they were listed in the distribution file with the GitHub SSH URL. However, I am getting this error for the rosdistro cache job after adding the credentials:
docker run --rm --cidfile=/var/lib/jenkins/jobs/test-indigo_rosdistro-cache/workspace/docker_generate_rosdistro_cache/docker.cid --net=host -v /var/lib/jenkins/jobs/test-indigo_rosdistro-cache/workspace/rosdistro_cache:/tmp/rosdistro_cache -v /var/lib/jenkins/.ssh/known_hosts:/etc/ssh/ssh_known_hosts:ro -v :/tmp/ssh_auth_sock -e SSH_AUTH_SOCK=/tmp/ssh_auth_sock rosdistro_cache_generation
13:21:02 docker: Error response from daemon: Invalid volume spec ":/tmp/ssh_auth_sock": Invalid volume specification: ':/tmp/ssh_auth_sock'.
Looking at the error, it looks like the issue is in the part that I highlighted. I checked out the code that's generating the job, and it looks to me like it's exporting the SSH_AUTH_SOCK variable
after it's using it:
This can also be seen above. Am I misunderstanding what's going on there?