# Error when pulling source code from azure devops

**URL:** <https://community.sonatype.com/t/error-when-pulling-source-code-from-azure-devops/10688>\
**Category:** Sonatype Lifecycle & Firewall\
**Tags:** nexus-iq\
**Created:** [May 25, 2023, 8:37am UTC](https://community.sonatype.com/t/error-when-pulling-source-code-from-azure-devops/10688 "2023-05-25T08:37:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.ferrand](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@paul.ferrand](https://community.sonatype.com/u/paul.ferrand)\
**Post date:** [May 25, 2023, 8:37am UTC](https://community.sonatype.com/t/error-when-pulling-source-code-from-azure-devops/10688/1 "2023-05-25T08:37:09Z")

</div>

Hello,

I successfully configured my Source control (it’s an azure devops 2020 on-premise) in Nexus Lifecycle, but when I take a look at the logs I have the following error:

2023-05-25 08:32:37,969+0000 ERROR [PullRequestMonitor-0] com.sonatype.insight.brain.git.PullRequestMonitor - Failed to retrieve head commit data for repository URL [https://azuredevops.fr/default/toto/\_git/toto.Core](https://azuredevops.fr/default/toto/_git/toto.Core).  
com.sonatype.nexus.git.utils.api.GitException: Invalid exit code executing command ‘/bin/sh -c git ls-remote --heads [https://azuredevops.fr/default/toto/\_git/toto.Core](https://azuredevops.fr/default/toto/_git/toto.Core)’ in path ‘/sonatype-work/temp’.  
at com.sonatype.nexus.git.utils.api.NativeGitApi.cleanGitException(NativeGitApi.java:580)  
at com.sonatype.nexus.git.utils.api.NativeGitApi.runCommand(NativeGitApi.java:541)  
at com.sonatype.nexus.git.utils.api.NativeGitApi.runCommand(NativeGitApi.java:500)  
at com.sonatype.nexus.git.utils.api.NativeGitApi.gitLsRemote(NativeGitApi.java:273)  
at com.sonatype.nexus.git.utils.api.NativeGitApi.getHeadCommitsForAllBranches(NativeGitApi.java:241)  
at com.sonatype.insight.brain.git.PullRequestMonitor$PullRequestMonitorTask.call(PullRequestMonitor.java:244)  
at com.sonatype.insight.brain.git.PullRequestMonitor$PullRequestMonitorTask.call(PullRequestMonitor.java:201)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at com.sonatype.insight.brain.tenancy.TenantAwareOneTimeRunnable.lambda$run$0(TenantAwareOneTimeRunnable.java:44)  
at com.sonatype.insight.brain.tenancy.TenantThreadLocal.runAs(TenantThreadLocal.java:181)  
at com.sonatype.insight.brain.tenancy.TenantAwareOneTimeRunnable.run(TenantAwareOneTimeRunnable.java:42)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at java.lang.Thread.run(Thread.java:750)  
Caused by: org.zeroturnaround.exec.InvalidExitValueException: Unexpected exit value: 128, allowed exit values: [0], executed command [/bin/sh, -c, git ls-remote --heads [https://azuredevops.fr/default/toto/\_git/toto.Core](https://azuredevops.fr/default/toto/_git/toto.Core)] in directory /sonatype-work/temp with environment {GIT\_TOKEN=, SSH\_ASKPASS=/sonatype-work/temp/nexus-iq-git-helper6098691608871785070.sh, GIT\_TERMINAL\_PROMPT=0, GIT\_USERNAME=srv-lifecycle, GIT\_ASKPASS=/sonatype-work/temp/nexus-iq-git-helper6098691608871785070.sh, GIT\_SSH\_COMMAND=ssh -oBatchMode=yes}, output was 102 bytes:  
fatal: Authentication failed for ‘[https://azuredevops.fr/default/toto/\_git/toto.Core/](https://azuredevops.fr/default/toto/_git/toto.Core/)’  
at org.zeroturnaround.exec.ProcessExecutor.waitFor(ProcessExecutor.java:1097)  
at org.zeroturnaround.exec.ProcessExecutor.execute(ProcessExecutor.java:906)  
at com.sonatype.nexus.git.utils.api.NativeGitApi.runCommand(NativeGitApi.java:532)  
… 12 common frames omitted

I can’t figure out what’s wrong, can you help me ?

I deployed Nexus Lifecycle on kubernetes (docker container) and my Azure Devops is deployed on a Windows Server 2016.

Thanks for your help.

Best regarde

---

<div class="post-metadata">

**Author:** ![mfrost](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mfrost/32/1701_2.png) [@mfrost](https://community.sonatype.com/u/mfrost)\
**Post date:** [May 30, 2023, 8:35pm UTC](https://community.sonatype.com/t/error-when-pulling-source-code-from-azure-devops/10688/2 "2023-05-30T20:35:11Z")

</div>

Hi @paul.ferrand! I think this will also best be addressed by our Support team which [you can do here](https://support.sonatype.com).
