<div dir="ltr">Thanks alot Anders,<div><br></div><div>Finally I made it work with ssh: </div><div><br></div><div>The colon after the domain name should be changed to a / :</div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Wrong) SRC_URI = "git@mygitserver.net:me/</span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">myproject.git;protocol=ssh;</span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">branch=master"</span><br>
</div><div>Correct) SRC_URI = <span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">"<a href="http://git@mygitserver.net/me/">git@mygitserver.net/me/</a></span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">myproject.git;protocol=ssh;</span><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">branch=master"</span></div>
<div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;color:rgb(80,0,80);font-family:arial,sans-serif">Cheers,</span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 1:27 AM, Anders Darander <span dir="ltr"><<a href="mailto:anders@chargestorm.se" target="_blank">anders@chargestorm.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Pourya Shirazian <<a href="mailto:pourya.shirazian@gmail.com">pourya.shirazian@gmail.com</a>> [140624 00:58]:<br>
<div class=""><br>
> Hi,<br>
<br>
> When writing a recipe the SRC_URI is supposed to accept git repository<br>
> addresses but the following fails to build for me:<br>
<br>
> 1. With http URL: It also does not allow my credentials to be embedded in the<br>
> URI<br>
<br>
> SRC_URI = "<a href="http://mygitserver.net/myproject.git;protocol=http;branch=master" target="_blank">http://mygitserver.net/myproject.git;protocol=http;branch=master</a>"<br>
<br>
</div>You should use git:// here. This is to inform bitbake that this is a git<br>
URL. You should keep protocol=http, as this will tell bitbake that git<br>
should use the http protocol.<br>
<br>
Do you need to supply credentials together with your http-URL?<br>
<div class=""><br>
> Exception: ExpansionError: Failure expanding variable SRCPV, expression was $<br>
> {@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher<br>
> failure: SRCREV was used yet no valid SCM was found in SRC_URI<br>
<br>
</div>Well, as you used http://... in SRC_URI, bitbake think's it has to<br>
download a file from the webserver.<br>
<div class=""><br>
<br>
> 2. With ssh URL<br>
<br>
> SRC_URI = "git@mygitserver.net:me/myproject.git;protocol=ssh;branch=master"<br>
<br>
> Exception: ExpansionError: Failure expanding variable SRCPV, expression was $<br>
> {@bb.fetch2.get_srcrev(d)} which triggered exception MalformedUrl: The URL: "<br>
> git@mygitserver.net:me/myproject.git;protocol=ssh;branch=master" is invalid and<br>
> cannot be interpreted<br>
<br>
</div>You still need to start the URI with git://...<br>
<div class=""><br>
> After checking the documentation it seems it only expects the git protocol only<br>
> and it worked in this example, however, our internal enterprise github only<br>
> supports http and ssh URIs.<br>
<br>
</div>No, the protocol is specified by adding protocol=xxx.<br>
<div class=""><br>
> SRC_URI = "git://<a href="http://github.com/GraphicsEmpire/gridvisualization.git;branch=master" target="_blank">github.com/GraphicsEmpire/gridvisualization.git;branch=master</a>”<br>
<br>
</div>Cheers,<br>
Anders<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Anders Darander<br>
ChargeStorm AB / eStorm AB<br>
</font></span></blockquote></div><br></div>