From: "Randle, William C" <william.c.randle@intel.com>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Question about access local stash/bitbucket server via yocto
Date: Wed, 2 Mar 2016 19:04:09 +0000 [thread overview]
Message-ID: <1456945402.2259.2.camel@intel.com> (raw)
In-Reply-To: <OF43D40F78.BEF1AE15-ON88257F6A.0061E32E-88257F6A.0061FA08@selinc.com>
On Wed, 2016-03-02 at 09:50 -0800, robert_joslyn@selinc.com wrote:
> yocto-bounces@yoctoproject.org wrote on 03/02/2016 06:23:12 AM:
>
> >
> > From: "Olsson Rikard (RBSN/ESW1)" <Rikard.Olsson@se.bosch.com>
> > To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>,
> > Date: 03/02/2016 06:31 AM
> > Subject: [yocto] Question about access local stash/bitbucket server
> > via
> yocto
> >
> > Sent by: yocto-bounces@yoctoproject.org
> >
> > Dear Yocto members,
> >
> > My first post so here we go….
> > 1) I am new to yocto and so is the company I work for….
> > 2) My companys firewall/intranet blocks git protocol so only http
> > works…
> >
> >
> > Anyhow, in the company there is a local stash/bitbucket sever
> > which
> > run on XXXX port number where I have some repositories and I am
> > able
> > to clone them with:
> > git clone http://<USER>@<server>:<PORT>/XXX/~YYY/ZZZ.git[%3cUSER%
> > 3e@%3cserver%3e] ==> This works fine from command line, note the
> > “~”
> >
> > However, now I want to do the clone from a yocto/bitbake file I
> > created as follows:
> > LIC_FILES_CHKSUM = "file://LICENSE;md5=XXXXXXXXXXXXXXXXXXXXXXXXX"
> > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
> > SRCREV = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
> > SRC_URI = "http:/<USER>@<server>:<PORT>/XXX/~YYY/ZZZ.git"
> > However this fails with Username/Password Authentication Failed
> > which I find strange since I have no problem with git clone …..
> Using SSH is probably your best bet. You'll need to upload your
> public
> key to Stash first (it's in your account settings). The SRC_URI
> syntax is
> a bit awkward in my opinion, but it looks like this:
> SRC_URI =
> "git://<user>@<server>:<port>/XXX/~YYY/ZZZ.git;protocol=ssh"
>
> Note that the user is not your Stash username, it's the user that
> Stash
> uses for SSH. It is probably "git" or something similar. The port
> number
> and tilde are not a problem.
You may also need to cache your passphrase using ssh-agent/ssh-add, as
bitbake it not setup to prompt you for it.
> >
> >
> > Now I have two questions:
> > 1) Is it possible to add my USER and PASSWORD in the bitbake/
> > yocto (*.bb file) file to work around the Username/Password
> > Authentication Failed problem.
> > 2) I also have a question if there are any limitation in the
> > path I use, for example:
> > a. Is it OK to have <PORT> number as part of path, I haven’t
> > seen that in any other files related to yocto/bitbake? And if not
> > how do I specify the PORT number?
> > b. Or maybe the “~” will cause problem , I haven’t seen this in
> > any path names related to yocto/bitbake?
> >
> > Any advice I appreciated.
> >
> > Mit freundlichen Grüßen / Best regards
> >
> > Rikard Olsson
> >
> > Engineering Software, Lund, Sweden (RBSN/ESW)
> > Tel. +46(46)270-6843 | Rikard.Olsson2@se.bosch.com
> --
> Robert Joslyn
> Software Engineer, R&D - Automation
> Schweitzer Engineering Laboratories
> 509-332-1890 ext. 3214
next prev parent reply other threads:[~2016-03-02 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-02 17:50 Question about access local stash/bitbucket server via yocto robert_joslyn
2016-03-02 19:04 ` Randle, William C [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-03-02 14:23 Olsson Rikard (RBSN/ESW1)
2016-03-02 14:44 ` Christian Ege
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1456945402.2259.2.camel@intel.com \
--to=william.c.randle@intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.