Re: Git fetch with user/pass in a recipe


Michael Halstead
 

On 04/16/2014 02:15 PM, Ronaldo Nunez wrote:
Hi all!

I'm trying to create a custom recipe to a proprietary software from my company. The code should be fetched from a git server, with username and password authentication through a http connection (port 8080).

From the terminal I use the following command line to clone the project:


well in the bitbake recipe, I tried the following in SRC_URI variable, with no success:


I also tried:

SRC_URI = "git://server:8080/project.git;protocol=http;user=username"

It isn't mentioned at http://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html#git-fetcher but looking at http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/bb/fetch2/git.py?h=dora it seems that including the password as part of the user parameter should work.

For example,
SRC_URI = "git://server:8080/project.git;protocol=http;user=username:password"


Michael Halstead
Yocto Project / Sys Admin


Again, with no success.

Well, any help is welcome. Thanks in advance.

--
Ronaldo Nunez



Join yocto@lists.yoctoproject.org to automatically receive all group messages.