tfs - Team Foundation Server 2015 git repo with submodules on external git servers -


i've got team foundation server 2015 installed. working great expect 1 thing.

i working 2 main repositories (created team projects). build first repository works great build second repository has problems.

the first has sub-modules live on tfs server itself. build works great here.

the second has sub-modules live on different server. when build runs tfs fails obtain submodules:

******************************************************************************     starting: sources ****************************************************************************** syncing repository: my_app (git) checking out dbab6... c:\tfsbuildagents\agent-utp120w-1\_work\5\s submodules  object not found - no matching loose object (f8334...)  prepare repository failed exception. 

(i've abbreviated sha's here simplicity)

the sha starts f8334... submodule lives on external git server. guess error:

object not found - no matching loose object

actually has credentials tfs attempting use on remote server. there way see credentials tfs using interact remote server? there way configure these credentials myself?

i attempted change repository type in build settings git external git specify credentials. however, results in yet different error:

******************************************************************************     starting: sources ****************************************************************************** syncing repository: my_app (git)  many redirects or authentication replays  prepare repository failed exception. 

google results both error:

too many redirects or authentication replays

and previous don't seem turn useful scenario. have clues?

update

it looks tfs 2015 supports repos submodules in tfs itself, or anonymously accessible. however, new feature request created address external authentication submodules.

however, in case external git server is anonymously accessible. so, unfortunately, i'm guessing problem somehow lies external git server? reference open source software bonobo git server.

i couldn't reproduce issue, i'd update test reference:

  1. create git team project "git5" in tfs 2015, create new solution "project2" , push tfs.

  2. i use visual studio team services external git server. , create git team project "git", pushing project "gitforvso" in it.

  3. add project "gitforvso" project "project2" submodule, command is: %project2%>git submodule add https://xxx.visualstudio.com/defaultcollection/_git/git/

  4. commit changes , push tfs. the team project "git5" looks screenshot below:

enter image description here

  1. create empty build definition , specify "repository" tab screenshot below:

enter image description here

  • if specify "user name" , "password" tfvs alternate authentication credentials, used add submodule. i'll successful "get sources".
  • if type wrong "user name" or "password", i'll "401" error.

enter image description here

there no error "too many redirects or authentication replays" under test. may check steps see whether there different yours.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -