跨平台在TFS 2015 vNext代理(Ubuntu Linux + TFS前提)中不起作用。继续获取“未授权(401)”允许。 [英] Cross-platform does not work in TFS 2015 vNext agent (Ubuntu Linux + TFS premise). Keep getting "Unauthorized (401)" permission.

查看:62
本文介绍了跨平台在TFS 2015 vNext代理(Ubuntu Linux + TFS前提)中不起作用。继续获取“未授权(401)”允许。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照
这里的说明进行操作
在Ubuntu Linux上配置一个代理我们的TFS内部代理。

I follow the instructions here to configure an agent on Ubuntu Linux which points to our TFS on premise.

说明中的不同之处在于,我们在内部使用TFS,因此我们必须启用TFS服务器上的IIS基本身份验证,使其适用于AD用户。我们终于可以注册代理了。但是,当我们运行一个只有1个任务到
构建Maven文件的vanilla构建时,它会一直出现错误:

The different in the instructions is that, we use our TFS on premise, so we have to enable IIS Basic Authentication on TFS server to make it work for AD user. We finally can register an agent. However, when we run a vanilla build that only has 1 task to build Maven files, it keeps having errors:

## [Error] 2016-05-11T21:29 :35.517Z:错误:请求失败:未授权(401) - http:// tfs:8080 / tfs /<团队项目> / _ apis / distributedtask

## [错误] 2016-05- 11T21:29:35.868Z:请求失败:未经授权(401) - http:// tfs:8080 / tfs /<团队项目> / _ apis / distributedtask

2016-05-11T21:29: 36.955Z:已完成工作:构建¥b $ b

##[Error] 2016-05-11T21:29:35.517Z: Error: Failed Request: Unauthorized(401) - http://tfs:8080/tfs/<team project>/_apis/distributedtask
##[Error] 2016-05-11T21:29:35.868Z: Failed Request: Unauthorized(401) - http://tfs:8080/tfs/<team project>/_apis/distributedtask
2016-05-11T21:29:36.955Z: Job Finished: Build

以下是安装/配置代理并运行时的完整日志构建:

Here is the full logs when I install/configure agent and run the build:

推荐答案

嗨garynguyen,

请参阅这些链接以再次配置您的代理并检查结果。

https://github.com/Microsoft/vso-agent/blob/master/docs/onprem。 md

#TFS内部部署的替代凭证

# Alternative Credentials for TFS On Premise

https:/ /github.com/Microsoft/ vso-agent / issues / 10

问候

Starain


这篇关于跨平台在TFS 2015 vNext代理(Ubuntu Linux + TFS前提)中不起作用。继续获取“未授权(401)”允许。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆