poky.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* Azure Devops repo URL support ? #poky
@ 2022-11-28 11:11 BELHADJ SALEM Talel
  2022-11-28 13:01 ` [poky] " Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: BELHADJ SALEM Talel @ 2022-11-28 11:11 UTC (permalink / raw)
  To: poky

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

Hello All,

I have a git repo on Azure devops project, the `git remote -v` command shows the URL in the following format:

git@ssh.dev.azure.com:v3/<USERNAME>/<PROJECT_NAME>

When setting it to SRC_URI as:

SRC_URI = "git:// git@ssh.dev.azure.com:v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1 ( git@ssh.dev.azure.com:v3/%3CUSERNAME%3E/%3CPROJECT_NAME%3E ) "

it shows the error:

Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.

I tried too many combinations:
SRC_URI = "git:// <USERNAME>@ssh.dev.azure.com:v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1 ( git@ssh.dev.azure.com:v3/%3CUSERNAME%3E/%3CPROJECT_NAME%3E ) "
SRC_URI = "git:// git@ssh.dev.azure.com/v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1 ( git@ssh.dev.azure.com:v3/%3CUSERNAME%3E/%3CPROJECT_NAME%3E ) "
SRC_URI = "git:// <USERNAME>@ssh.dev.azure.com/v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1 ( git@ssh.dev.azure.com:v3/%3CUSERNAME%3E/%3CPROJECT_NAME%3E ) "

I don't know how to make it work.

Anyone has an idea ?
Thanks

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

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

* Re: [poky] Azure Devops repo URL support ? #poky
  2022-11-28 11:11 Azure Devops repo URL support ? #poky BELHADJ SALEM Talel
@ 2022-11-28 13:01 ` Richard Purdie
  2022-11-28 14:51   ` BELHADJ SALEM Talel
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2022-11-28 13:01 UTC (permalink / raw)
  To: BELHADJ SALEM Talel, poky

On Mon, 2022-11-28 at 03:11 -0800, BELHADJ SALEM Talel wrote:
> Hello All,
> 
> I have a git repo on Azure devops project, the `git remote -v`
> command shows the URL in the following format:
> 
> git@ssh.dev.azure.com:v3/<USERNAME>/<PROJECT_NAME>
> 
> When setting it to SRC_URI as:
> 
> SRC_URI =
> "git://git@ssh.dev.azure.com:v3/<USERNAME>/<PROJECT_NAME>;protocol=ss
> h;nobranch=1"
> 
> it shows the error:
> 
> Bitbake Fetcher Error: FetchError('Unable to fetch URL from any
> source.
> 
> I tried too many combinations:
> SRC_URI =
> "git://<USERNAME>@ssh.dev.azure.com:v3/<USERNAME>/<PROJECT_NAME>;prot
> ocol=ssh;nobranch=1"
> SRC_URI =
> "git://git@ssh.dev.azure.com/v3/<USERNAME>/<PROJECT_NAME>;protocol=ss
> h;nobranch=1"
> SRC_URI =
> "git://<USERNAME>@ssh.dev.azure.com/v3/<USERNAME>/<PROJECT_NAME>;prot
> ocol=ssh;nobranch=1"
> 
> I don't know how to make it work.
> 
> Anyone has an idea ? 

I'd have expected one of those to work. What is the actual fetch error?
The error you pasted is the bit where it says "can't make this work,
giving up" but there should have been something before that. What do
the do_fetch logs say?

Cheers,

Richard

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

* Re: Azure Devops repo URL support ? #poky
  2022-11-28 13:01 ` [poky] " Richard Purdie
@ 2022-11-28 14:51   ` BELHADJ SALEM Talel
  2022-11-28 14:53     ` BELHADJ SALEM Talel
  0 siblings, 1 reply; 7+ messages in thread
From: BELHADJ SALEM Talel @ 2022-11-28 14:51 UTC (permalink / raw)
  To: poky

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

This is the error for the format:

SRC_URI = "git://git@ssh.dev.azure.com:v3/WITTI/(Embedded)%20Gateways/sofiatech_Gateway_setup;protocol=ssh;branch=dev"

> 
> ERROR : witti-gw-config-git-r22 do_fetch: Fetcher failure: Fetch command
> export PSEUDO_DISABLED=1; export
> DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export
> SSH_AGENT_PID="1695";
> export SSH_AUTH_SOCK="/tmp/ssh-LYWJXxMijRIZ/agent.1632"; export
> PATH="/home/talel/Desktop/YoctoWork/maie/witti-embedded/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/talel/Desktop/Y
> 
> octoWork/maie/witti-embedded/layers/poky/scripts:/home/talel/Desktop/YoctoWork/maie/witti-embedded/build/tmp/work/all-poky-linux/witti-gw-config/git-r22/recipe-sysroot-native/usr/bin/allarch-
> 
> poky-linux:/home/talel/Desktop/YoctoWork/maie/witti-embedded/build/tmp/work/all-poky-linux/witti-gw-config/git-r22/recipe-sysroot/usr/bin/crossscripts:/home/talel/Desktop/YoctoWork/maie/witti-embedded/build/tmp/work/all-poky-linux/witti-gw-config/git-r22/recipe-sysroot-native/usr/sbin:/home/talel/Desktop/YoctoWork/maie/witti-embedded/build/tmp/work/all-poky-linux/witti-gw-config/git-r22/recipe-sysroot-native/usr/bin:/home/talel/Desktop/YoctoWork/maie/witti-embedded/build/tmp/work/all-poky-linux/witti-gw-config/git-r22/recipe-sysrootnative/sbin:/home/talel/Desktop/Yo
> 
> ctoWork/maie/witti-embedded/build/tmp/work/all-poky-linux/witti-gw-config/git-r22/recipe-sysroot-native/bin:/home/talel/Desktop/YoctoWork/maie/witti-embedded/layers/poky/bitbake/bin:/home/talel/Desktop/YoctoWork/maie/witti-embedded/build/tmp/hosttools";
> export HOME="/home/talel"; LANG=C git -c core.fsyncobjectfiles=0 clone
> --bare --mirror "ssh://git@ssh.dev.azure.com:v3/WITTI/(Em
> bedded) Gateways/sofiatech_Gateway_setup"
> /home/talel/Desktop/YoctoWork/maie/witti-embedded/build/downloads/git2/ssh.dev.azure.com.v3.WITTI.(Embedded)_Gateways.sofiatech_Gateway_setup
> --progr
> ess failed with exit code 2, no output
> ERROR : witti-gw-config-git-r22 do_fetch: Bitbake Fetcher Error:
> FetchError('Unable to fetch URL from any source.',
> 'git://git@ssh.dev.azure.com:v3/WITTI/(Embedded)%20Gateways/sofiatech_Gatewa
> 
> y_setup;protocol=ssh;branch=dev')
> 

This is the same error for all combinations:

> 
> 
>> sofiatech_Gateway_setup;protocol=ssh;branch=dev"
> 
> 
>> SRC_URI =
>> "git://WITTI@ssh.dev.azure.com/v3/WITTI/%28Embedded%29%20Gateways/sofiatech_Gateway_setup;protocol=ssh;branch=dev"
>> 
> 
> 
>> SRC_URI =
>> "git://git@ssh.dev.azure.com/v3/WITTI/%28Embedded%29%20Gateways/sofiatech_Gateway_setup;protocol=ssh;branch=dev"
>> 
> 
>

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

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

* Re: Azure Devops repo URL support ? #poky
  2022-11-28 14:51   ` BELHADJ SALEM Talel
@ 2022-11-28 14:53     ` BELHADJ SALEM Talel
  2022-11-28 14:58       ` [poky] " Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: BELHADJ SALEM Talel @ 2022-11-28 14:53 UTC (permalink / raw)
  To: poky

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

On Mon, Nov 28, 2022 at 03:51 PM, BELHADJ SALEM Talel wrote:

> 
> --mirror "ssh://git@...:v3/WITTI/(Em
> bedded) Gateways/sofiatech_Gateway_setup"

I think the issue is that there are some spaces in the mirror URL ?

--mirror "ssh://git@...:v3/WITTI/(Em bedded) Gateways/sofiatech_Gateway_setup"

Azure repo URLs often have spaces.

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

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

* Re: [poky] Azure Devops repo URL support ? #poky
  2022-11-28 14:53     ` BELHADJ SALEM Talel
@ 2022-11-28 14:58       ` Alexander Kanavin
  2022-11-28 15:04         ` BELHADJ SALEM Talel
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2022-11-28 14:58 UTC (permalink / raw)
  To: BELHADJ SALEM Talel; +Cc: poky

( and ) look suspicious too, using such special characters is asking
for trouble. The command that was being run is visible right there, so
you might want to try it directly on the command line.

Alex

On Mon, 28 Nov 2022 at 15:53, BELHADJ SALEM Talel
<talel.hajsalem@sofia-technologies.com> wrote:
>
> On Mon, Nov 28, 2022 at 03:51 PM, BELHADJ SALEM Talel wrote:
>
> --mirror "ssh://git@...:v3/WITTI/(Em
> bedded) Gateways/sofiatech_Gateway_setup"
>
> I think the issue is that there are some spaces in the mirror URL ?
>
> --mirror "ssh://git@...:v3/WITTI/(Embedded) Gateways/sofiatech_Gateway_setup"
>
> Azure repo URLs often have spaces.
>
> 
>

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

* Re: Azure Devops repo URL support ? #poky
  2022-11-28 14:58       ` [poky] " Alexander Kanavin
@ 2022-11-28 15:04         ` BELHADJ SALEM Talel
  2022-11-28 15:08           ` [poky] " Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: BELHADJ SALEM Talel @ 2022-11-28 15:04 UTC (permalink / raw)
  To: poky

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

I tried the same command and it was successfull:

git clone --bare --mirror "ssh://WITTI@ssh.dev.azure.com/v3/WITTI/( Embedded) Gateways/sofiatech_Gateway_setup"

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

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

* Re: [poky] Azure Devops repo URL support ? #poky
  2022-11-28 15:04         ` BELHADJ SALEM Talel
@ 2022-11-28 15:08           ` Alexander Kanavin
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Kanavin @ 2022-11-28 15:08 UTC (permalink / raw)
  To: BELHADJ SALEM Talel; +Cc: poky

But it's not the same. The command is
LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror
"ssh://git@ssh.dev.azure.com:v3/WITTI/(Embedded)
Gateways/sofiatech_Gateway_setup"
/home/talel/Desktop/YoctoWork/maie/witti-embedded/build/downloads/git2/ssh.dev.azure.com.v3.WITTI.(Embedded)_Gateways.sofiatech_Gateway_setup
--progress

Alex

On Mon, 28 Nov 2022 at 16:04, BELHADJ SALEM Talel
<talel.hajsalem@sofia-technologies.com> wrote:
>
> I tried the same command and it was successfull:
>
> git clone --bare --mirror "ssh://WITTI@ssh.dev.azure.com/v3/WITTI/(Embedded) Gateways/sofiatech_Gateway_setup"
>
> 
>

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

end of thread, other threads:[~2022-11-28 15:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-28 11:11 Azure Devops repo URL support ? #poky BELHADJ SALEM Talel
2022-11-28 13:01 ` [poky] " Richard Purdie
2022-11-28 14:51   ` BELHADJ SALEM Talel
2022-11-28 14:53     ` BELHADJ SALEM Talel
2022-11-28 14:58       ` [poky] " Alexander Kanavin
2022-11-28 15:04         ` BELHADJ SALEM Talel
2022-11-28 15:08           ` [poky] " Alexander Kanavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).