简体   繁体   English

TFS 2015.2具有自定义构建任务的工作项创建问题

[英]TFS 2015.2 Work Item Creation Issue with custom build task

I can see following error logged in windows event log after initiating a build in TFS 2015.2 with a custom build task. 在TFS 2015.2中使用自定义生成任务启动生成后,我可以看到Windows事件日志中记录了以下错误。

ds:xxxxxxx\\SqlExpress db:Tfs_Configuration Msg:4060 Level:11 State:1 LineNumber:65536 Errors:4060;18456; ds:xxxxxxx \\ SqlExpress db:Tfs_Configuration消息:4060级别:11状态:1行号:65536错误:4060; 18456; Exception:Cannot open database "Tfs_Configuration" requested by the login. 例外:无法打开登录请求的数据库“ Tfs_Configuration”。 The login failed. 登录失败。 Login failed for user 'NT AUTHORITY\\IUSR'. 用户“ NT AUTHORITY \\ IUSR”的登录失败。 Command:EXEC Gallery.prc_QueryExtension publisherName=xxxxxxxx,extensionName=xxxxxx-build-extension,version=1.0.1,validationId=,flags=10 -------------------- SProcs:;; 命令:EXEC Gallery.prc_QueryExtension PublisherName = xxxxxxxx,extensionName = xxxxxx-build-extension,version = 1.0.1,validationId =,flags = 10 -------------------- SProcs:;; Messages:Cannot open database "Tfs_Configuration" requested by the login. 消息:无法打开登录请求的数据库“ Tfs_Configuration”。 The login failed.;Login failed for user 'NT AUTHORITY\\IUSR'.; 登录失败。;用户“ NT AUTHORITY \\ IUSR”的登录失败。

The custom build task which use vso-node-api library is displaying following error message in build console. 使用vso-node-api库的自定义构建任务正在构建控制台中显示以下错误消息。

Failed to create WorkItem 'xxxxxxxx' Error: Failed Request: Bad Request(400) - TF401349: An unexpected error has occurred, please verify your request and try again. 无法创建WorkItem'xxxxxxxx'错误:错误的请求:错误的请求(400)-TF401349:发生意外错误,请验证您的请求,然后重试。

Is there a relation between these two logs? 这两个日志之间有关系吗? What is the reason for authentication issue? 身份验证问题的原因是什么?

Thanks. 谢谢。

TFS 2015.3 doesn't support PAT token based authentication. TFS 2015.3不支持基于PAT令牌的身份验证。 Alternative is to use Basic Authentication option. 替代方法是使用基本身份验证选项。 If the extension should be compatible with both VSTS and TFS, then you have to create a mechanism to use separate authentication mechanism for each deployment scenario. 如果扩展应同时与VSTS和TFS兼容,则必须创建一种机制以针对每种部署方案使用单独的身份验证机制。 TFS 2017 support token authentication so that it will work fine with the PAT just like VSTS. TFS 2017支持令牌身份验证,因此它可以像VSTS一样与PAT一起正常使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM