>
> I have one master node and a slave node I run my Jenkins jobs unto and I 
> encountered a problem recently. I am unable to checkout a repository from 
> Git on my slave through a Jenkins pipeline. Locally, checking out a branch 
> on my repository works fine, cloning, pushing, pulling, everything works. 
> But if I try to do the same operations through a Jenkins pipeline, the 
> stage at which I clone my repo fails with "Could not checkout branch: 
> [branch] with start point [start point]". This is the command I clone my 
> repo with: git branch: '**', credentialsId: '[credential]', url: 
> 'repo_link' . I use a global credential, which makes me think this is not a 
> credential problem, but something else that I am not aware of right now. 
>

1) If you can 'ssh to the node', using the same credentials, can you 
checkout the repo ?

2) In the Git repo, if accessible via Github UI or some form of UI, does 
the user have necessary privileges to clone ?

3) Remember, when the build happens in the agent node, it runs as a user 
different from your user id.

/Ram

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/03b28186-08d0-41f5-9be7-71c304e242b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to