I don't know if this helps or not but to use cmd line git in pipeline, I
use the SSH Agent plugin along with SSH key authentication.
On Friday, September 16, 2016 at 4:34:17 PM UTC-4, Nathan Hüsken wrote:
> I am trying to use git from a pipeline. For this I want to invoke git
> commands using "sh":
> sh('git clone https://myserver/project.git')
> Some things I want to do require authentication.
> When I use the GitSCM plugin (checkout([$class: 'GitSCM', ...), it tells
> me it uses GIT_ASKPASS for credentials.
> Can I do that too? How would I have to configure GIT_ASKPASS for this to
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 view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.