Azure devops 为什么我会得到;从进程返回的退出代码100:文件名';tf&x27&引用;

Azure devops 为什么我会得到;从进程返回的退出代码100:文件名';tf&x27&引用;,azure-devops,azure-devops-self-hosted-agent,Azure Devops,Azure Devops Self Hosted Agent,我正在使用Azure DevOps(visualstudio.com),并尝试在本地服务器上安装并运行Linux构建代理。这在以前是可行的,但我将Linux服务器从Ubuntu 16.04升级到了18.04。这打破了我以前的构建代理 因此,我删除了以前的构建代理并安装了一个最新的。新版本很容易注册,但当我尝试运行构建时,它无法检出源代码 有人知道是什么导致了这个问题,或者我可以去哪里寻求帮助吗?我不管理我们的Azure DevOps。我只是想让Linux部分保持原样 编辑:我应该注意到运行./e

我正在使用Azure DevOps(visualstudio.com),并尝试在本地服务器上安装并运行Linux构建代理。这在以前是可行的,但我将Linux服务器从Ubuntu 16.04升级到了18.04。这打破了我以前的构建代理

因此,我删除了以前的构建代理并安装了一个最新的。新版本很容易注册,但当我尝试运行构建时,它无法检出源代码

有人知道是什么导致了这个问题,或者我可以去哪里寻求帮助吗?我不管理我们的Azure DevOps。我只是想让Linux部分保持原样

编辑:我应该注意到运行./externals/tee/tf会产生零输出(并返回相同的100代码)。也许它与java有关。我正在运行Java(TM)SE运行时环境(build 12.0.2+10)


当我看到tf命令没有输出时,我非常确定这一定是java的问题。我尝试过许多不同版本的java,但都没有成功。但在Oracle java 1.8.0221中,它终于起作用了


我下载了.tar.gz文件,将其解压缩,并重写了/usr/bin/java*符号链接,指向1.8个副本,然后它就工作了。

太棒了!谢谢你在这里分享你的解决方案,你可以接受它作为答案,这样它可以帮助其他社区成员谁得到同样的问题,我们可以存档此线程,谢谢。+1这是唯一对我有效的事情!这是我最后的希望,因为我尝试安装了几个不同的java版本。非常感谢。
##[debug]Evaluating condition for step: 'Checkout'
##[debug]Evaluating: SucceededNode()
##[debug]Evaluating SucceededNode:
##[debug]=> True
##[debug]Result: True
##[section]Starting: Checkout
==============================================================================
Task         : Get sources
Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
Version      : 1.0.0
Author       : Microsoft
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
==============================================================================
##[debug]Processed: ##vso[plugininternal.updaterepositorypath alias=__designer_repo;]/home/***/myagent/_work/1/s
##[debug]Repository requires to be placed at '/home/***/myagent/_work/1/s', current location is '/home/***/myagent/_work/1/s'
Prepending PATH environment variable with directory containing 'tf'.
##[debug]Processed: ##vso[task.prependpath]/home/***/myagent/externals/tee
##[debug]PATH: '/home/***/myagent/externals/tee:/home/***/bin:/home/***/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
Querying workspace information.
##[debug]tf workspaces -format:xml "-collection:https://mydomain.visualstudio.com/" -jwt:*** -noprompt
##[debug]Starting process:
##[debug]  File name: 'tf'
##[debug]  Arguments: 'workspaces -format:xml "-collection:https://mydomain.visualstudio.com/" -jwt:*** -noprompt'
##[debug]  Working directory: '/home/***/myagent/_work/1/s'
##[debug]  Require exit code zero: 'True'
##[debug]  Encoding web name:  ; code page: ''
##[debug]  Force kill process on cancellation: 'False'
##[debug]  Redirected STDIN: 'False'
##[debug]  Persist current code page: 'False'
##[debug]  Keep redirected STDIN open: 'False'
##[debug]  High priority process: 'False'
##[debug]Updated oom_score_adj to 500 for PID: 1921.
##[debug]Process started with process id 1921, waiting for process exit.
##[debug]STDOUT/STDERR stream read finished.
##[debug]STDOUT/STDERR stream read finished.
##[debug]Finished process 1921 with exit code 100, and elapsed time 00:00:03.3458546.
##[error]Exit code 100 returned from process: file name 'tf', arguments 'workspaces -format:xml "-collection:https://mydomain.visualstudio.com/" -jwt:*** -noprompt'.
##[debug]Processed: ##vso[task.logissue type=error;]Exit code 100 returned from process: file name 'tf', arguments 'workspaces -format:xml "-collection:https://mydomain.visualstudio.com/" -jwt:*** -noprompt'.
##[debug]Processed: ##vso[task.complete result=Failed;]
##[debug]   at Agent.Plugins.Repository.TeeCliManager.WorkspacesAsync(Boolean matchWorkspaceNameOnAnyComputer)
   at Agent.Plugins.Repository.TfsVCSourceProvider.GetSourceAsync(AgentTaskPluginExecutionContext executionContext, RepositoryResource repository, CancellationToken cancellationToken)
   at Agent.Plugins.Repository.CheckoutTask.RunAsync(AgentTaskPluginExecutionContext executionContext, CancellationToken token)
   at Agent.PluginHost.Program.Main(String[] args)
##[section]Finishing: Checkout