All of lore.kernel.org
 help / color / mirror / Atom feed
* Git fetch with user/pass in a recipe
@ 2014-04-16 21:15 Ronaldo Nunez
  2014-04-16 21:48 ` Michael Halstead
  0 siblings, 1 reply; 3+ messages in thread
From: Ronaldo Nunez @ 2014-04-16 21:15 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

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:

$ git clone http://username:pass@server:8080/project.git

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

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

I also tried:

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

Again, with no success.

Well, any help is welcome. Thanks in advance.

-- 
Ronaldo Nunez

[-- Attachment #2: Type: text/html, Size: 1013 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Git fetch with user/pass in a recipe
  2014-04-16 21:15 Git fetch with user/pass in a recipe Ronaldo Nunez
@ 2014-04-16 21:48 ` Michael Halstead
  2014-04-17 17:23   ` Ronaldo Nunez
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Halstead @ 2014-04-16 21:48 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

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:
>
> $ git clone http://username:pass@server:8080/project.git
>
> well in the bitbake recipe, I tried the following in SRC_URI variable,
> with no success:
>
> SRC_URI = "git://username:pass@server:8080/project.git;protocol=http"
>
> 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
>
>


[-- Attachment #2: Type: text/html, Size: 3234 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Git fetch with user/pass in a recipe
  2014-04-16 21:48 ` Michael Halstead
@ 2014-04-17 17:23   ` Ronaldo Nunez
  0 siblings, 0 replies; 3+ messages in thread
From: Ronaldo Nunez @ 2014-04-17 17:23 UTC (permalink / raw)
  To: Michael Halstead; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1664 bytes --]

Thank you Michael! Worked as a charm!


2014-04-16 18:48 GMT-03:00 Michael Halstead <michael@yoctoproject.org>:

>  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:
>
>  $ git clone http://username:pass@server:8080/project.git
>
>  well in the bitbake recipe, I tried the following in SRC_URI variable,
> with no success:
>
>  SRC_URI = "git://username:pass@server:8080/project.git;protocol=http"<git://username:pass@server:8080/project.git;protocol=http>
>
>  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-fetcherbut looking at
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/bitbake/lib/bb/fetch2/git.py?h=dorait 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
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>


-- 
Ronaldo Nunez

[-- Attachment #2: Type: text/html, Size: 3746 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-17 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 21:15 Git fetch with user/pass in a recipe Ronaldo Nunez
2014-04-16 21:48 ` Michael Halstead
2014-04-17 17:23   ` Ronaldo Nunez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.