Wincred is the Windows Credential store. You probably want something else for your host OS
From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Pratik Dhandharia Sent: Tuesday, August 25, 2015 11:18 AM To: Jenkins Users Subject: Re: Get Jenkins Working with Private Repo Also the command you suggested, git.exe config --global credential.helper wincred Here, wincred is your windows credential right? on the man page, I could see the credential.helper accepting only two arguments, git config --global credential.helper store git config --global credential.helper cache I did not find any manual page suggesting your command option of wincred. Can you please elaborate more on the "wincred"? Thanks. On Tuesday, August 25, 2015 at 10:57:12 AM UTC-4, rginga wrote: Not before a POLL but in the job before it pulls from git. Something else polls or triggers the build. I also think it can be done once but does not hurt to do again so I just always do it From: jenkins...@googlegroups.com<javascript:> [mailto:jenkins...@googlegroups.com<javascript:>] On Behalf Of Pratik Dhandharia Sent: Tuesday, August 25, 2015 10:53 AM To: Jenkins Users Subject: Re: Get Jenkins Working with Private Repo So this means, that Jenkins invokes shell git command, when it is trying to poll SCM? I am in middle of testing this approach of using credential.helper. Thanks! On Monday, August 24, 2015 at 3:52:47 PM UTC-4, rginga wrote: I solved this problem on Windows by adding this as a buildstep before the SCM runs: git.exe config --global credential.helper wincred it is specifically needed for sub-modules. The local cred store does not handle sub-modules (I think) From: jenkins...@googlegroups.com<mailto:jenkins...@googlegroups.com> [mailto:jenkins...@googlegroups.com] On Behalf Of Pratik Dhandharia Sent: Monday, August 24, 2015 3:46 PM To: Jenkins Users Subject: Get Jenkins Working with Private Repo Hi All, I am comparatively new to Jenkins and I am trying to troubleshoot a Jenkins issue where we are trying to fetch a public repository which has multiple private sub-modules. It is due to legal reasons we cannot keep the private sub-modules public. So I have most of the plugin's installed in Jenkins. I have configured Jenkins to store the jenkins user credential using the credential plugin. What I am really trying to do is, fetching the private sub-modules using credentials (username and password). I don't want to switch to using SSH key of the jenkins user for pulling the private sub-modules. And here is the error that I get: > /usr/bin/git submodule sync # timeout=10 > /usr/bin/git config --get remote.origin.url # timeout=10 > /usr/bin/git submodule update --init --recursive FATAL: Command "/usr/bin/git submodule update --init --recursive" returned status code 1: stdout: stderr: fatal: Authentication failed Unable to fetch in submodule path Can someone please help point out if the Jenkins Git Client Plugin, work with fetching private repositories using credentials(username and password)? Thanks -- 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 jenkinsci-use...@googlegroups.com<mailto:jenkinsci-use...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f7c231e9-fce6-4d7f-b420-109ce6fe5cf9%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/f7c231e9-fce6-4d7f-b420-109ce6fe5cf9%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 jenkinsci-use...@googlegroups.com<javascript:>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2cb4f84f-55cd-4c5f-9693-ca3918d6ca8b%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/2cb4f84f-55cd-4c5f-9693-ca3918d6ca8b%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ac1e8ee3-a333-4b22-a87d-140e80380257%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/ac1e8ee3-a333-4b22-a87d-140e80380257%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E2D8661D67%40AMERMBX02.PERKINELMER.NET. For more options, visit https://groups.google.com/d/optout.