I created https://markwaite.visualstudio.com/ .  I was able to upload the
git client plugin source code and checkout from that repository into a
Jenkins job using my Visual Studio Online user name and password in the
credentials associated with the Jenkins job.

I confirmed I could checkout on Windows and Linux machines using both
command line git and JGit as the implementation.  I used
https://markwaite.visualstudio.com/DefaultCollection/_git/git-client-plugin as
the git URL.

I was not able to clone using https://username:password@
markwaite.visualstudio.com/DefaultCollection/_git/git-client-plugin (where
I replaced username with my user name and password with my password).

It could be that you're encountering an unexpected incompatibility between
your version of git and Visual Studio Online (possibly as described in
http://stackoverflow.com/questions/3778042/github-error-cloning-my-private-repository
 )

I'm not sure what other ideas to offer you.  One of the cases you described
works for me.

One of the cases you described (username:password) also fails for me.  I
suspect that is the same git plugin bug which causes bitbucket repositories
with username and password embedded in the URL to fail.  Refer to
https://issues.jenkins-ci.org/browse/JENKINS-26757 for more information on
that bug.

Thanks,
Mark Waite

On Wed, Sep 16, 2015 at 4:07 PM <angel.willi...@centrallogic.com> wrote:

> Again this is the error I get if I supply credentials via the GIT source
> code setup traditionaly:
> Failed to connect to repository : Command "C:\Git\cmd\git.exe -c
> core.askpass=true ls-remote -h
> https://company.visualstudio.com/DefaultCollection/_git/CompanyHEAD";
> returned status code 128:
> stdout:
> stderr: fatal: unable to access '
> https://company.visualstudio.com/DefaultCollection/_git/Company/': error
> setting certificate verify locations:
>   CAfile: C:/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
>   CApath: none
>
> If  I try this as the Repository URL:
> https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company
> I get this error:
> Failed to connect to repository : Command "C:\Git\cmd\git.exe -c
> core.askpass=true ls-remote -h
> https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company
> HEAD" returned status code 128:
> stdout:
> stderr: fatal: unable to access '
> https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company/':
> error setting certificate verify locations:
>   CAfile: C:/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
>   CApath: none
>
>
> On Wednesday, September 9, 2015 at 5:12:07 PM UTC-6,
> angel.w...@centrallogic.com wrote:
>>
>> How do I allow jenkins to access GIT source from the VSOnline GIT source?
>>
>> https://company.visualstudio.com/DefaultCollection/_git/company
>>
>> Failed to connect to repository : Command "C:\Program
>> Files\Git\bin\git.exe -c core.askpass=true ls-remote -h '
>> https://company.visualstudio.com/DefaultCollection/_git/Company HEAD"
>> returned status code 128:
>> stdout:
>> stderr: fatal: Authentication failed for '
>> https://company.visualstudio.com/DefaultCollection/_git/Company/
>>
>> I set up an alternate authentication method on my account in VSOnline but
>> I still can't access it.
>>
>> Someone suggested I use a commandline option in a build step but am
>> unfamiliar with how to do that as well..
>>
>> Any help would be greatly appreciated.
>>
>> --
> 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/fff4c7e3-c265-4f42-8f6b-9e43e7c07f63%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/fff4c7e3-c265-4f42-8f6b-9e43e7c07f63%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/CAO49JtGazSxZVaJi7U8rF8c8Xa0uQ3%2BHp6vmD6QpTy%3D3mKyRtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to