Error when pulling source code from azure devops

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.
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’ 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] 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/
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

Hi @paul.ferrand! I think this will also best be addressed by our Support team which you can do here.