Azure Devops repo URL support ? #poky
Hello All,
I have a git repo on Azure devops project, the git remote -v command shows the URL in the following format:
[email protected]:v3/<USERNAME>/<PROJECT_NAME>
When setting it to SRC_URI as:
SRC_URI = "git:// [email protected]:v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1 ( [email protected]: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 ( [email protected]:v3/%3CUSERNAME%3E/%3CPROJECT_NAME%3E ) " SRC_URI = "git:// [email protected]/v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1 ( [email protected]:v3/%3CUSERNAME%3E/%3CPROJECT_NAME%3E ) " SRC_URI = "git:// <USERNAME>@ssh.dev.azure.com/v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1 ( [email protected]:v3/%3CUSERNAME%3E/%3CPROJECT_NAME%3E ) "
I don't know how to make it work.
Anyone has an idea ?
Thanks
Quoted 29 lines · BELHADJ SALEM Talel
Hello All,
I have a git repo on Azure devops project, the
git remote -vcommand shows the URL in the following format:[email protected]:v3/<USERNAME>/<PROJECT_NAME>
When setting it to
SRC_URIas:
SRC_URI= "git://[email protected]:v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;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>;protocol=ssh;nobranch=1"SRC_URI= "git://[email protected]/v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1"SRC_URI= "git://<USERNAME>@ssh.dev.azure.com/v3/<USERNAME>/<PROJECT_NAME>;protocol=ssh;nobranch=1"
Quoted 3 lines
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
This is the error for the format:
SRC_URI = "git://[email protected]:v3/WITTI/(Embedded)%20Gateways/sofiatech_Gateway_setup;protocol=ssh;branch=dev"
Quoted 23 lines
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/YoctoWork/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://[email protected]: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-r22do_fetch: Bitbake Fetcher Error:
FetchError('Unable to fetch URL from any source.',
'git://[email protected]:v3/WITTI/(Embedded)%20Gateways/sofiatech_Gatewa
Quoted 2 lines
y_setup;protocol=ssh;branch=dev')
This is the same error for all combinations:
Quoted 15 lines
Quoted 13 lines
sofiatech_Gateway_setup;protocol=ssh;branch=dev"
SRC_URI= "git://[email protected]/v3/WITTI/%28Embedded%29%20Gateways/sofiatech_Gateway_setup;protocol=ssh;branch=dev"
SRC_URI= "git://[email protected]/v3/WITTI/%28Embedded%29%20Gateways/sofiatech_Gateway_setup;protocol=ssh;branch=dev"
Quoted 3 lines · BELHADJ SALEM Talel
--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.
( 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
Quoted 14 lines · BELHADJ SALEM Talel
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.
I tried the same command and it was successfull:
git clone --bare --mirror "ssh://[email protected]/v3/WITTI/( Embedded) Gateways/sofiatech_Gateway_setup"
But it's not the same. The command is
LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror
"ssh://[email protected]: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
Quoted 7 lines · BELHADJ SALEM Talel
I tried the same command and it was successfull:
git clone --bare --mirror "ssh://[email protected]/v3/WITTI/(Embedded) Gateways/sofiatech_Gateway_setup"