本文介绍了TF14098:访问被拒绝:用户XXX需要标签权限$ /的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们使用Jenkins构建应用程序,该应用程序将连接到TFS以获取最新版本并更新内部版本号。这一点工作正常,直到我们转移到TFS 2015,更新3.现在迁移后,我们得到"TF14098:访问被拒绝:用户XXX需要
标签许可($)"。


我试过这里提到的选项仍然得到同样的错误。
https://blogs.msdn.microsoft.com/tfssetup/2015/12/04/tfs-2015-rtm-update-1-tf14098-access-denied-user-needs-label-permissions -for /



以下是Jenkins构建的输出。 。请帮我解决这个问题。



" d:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion。 PROJ" (默认目标)(1) - >

(BuildAll目标) - >

  D:\\\ tespacespace \ Build \ MsBuildCommon \Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018:"IncrementBuildNumberTask"任务意外失败

d:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018:Microsoft.TeamFoundation.VersionControl.Client.ResourceAccessException: TF14098:访问被拒绝:用户svcapp2需要$ /的标签权限。 --->服务器无法处理
TF14098:拒绝访问:用户svcapp2需要标签许可(S)为$ /

d:\workspace\Build\MsBuildCommon \ Archie\UpdateSoftwareVersion.proj(9,5):错误MSB4018:    ---内部异常堆栈跟踪结束---

D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\   在Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation操作,TfsMessage消息,对象[]和输出)

D:\ workspace \Build \MsBuildCommon \Archive \ UpdateSoftwareVersion.proj(9,5):错误MSB4018:   在Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation操作,对象[]参数,时间跨度超时,对象[]&安培;
输出)

d:\workspace\ Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018:   在Microsoft.TeamFoundation.VersionControl.Client.Repository5.LabelItem(工作区名字符串,字符串workspaceOwner,VersionControlLabel标签,LabelItemSpec []
labelSpecs,LabelChildOption儿童,的Int32 maxClientPathLength,失败[]安培;故障)

D:\ workspace \Build \MsBuildCommon \Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018:   在Microsoft.TeamFoundation.VersionControl.Client.WebServiceLayerLocalWorkspaces.LabelItem(工作区名字符串,字符串workspaceOwner,VersionControlLabel
标签,LabelItemSpec [] labelSpecs,LabelChildOption儿童,失败[]安培;故障)

d :\ workspace \Build \MsBuildCommon \Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018:   在Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer.CreateLabel(VersionControlLabel标签,LabelItemSpec [] itemSpecs,LabelChildOption
选项,失败[]安培;故障)

d:\workspace\ Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018:   在Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer.CreateLabel(VersionControlLabel标签,LabelItemSpec [] itemSpecs,LabelChildOption
选项)

d:\workspace\Build\MsBuildCommon\Archive \ UpdateSoftwareVersion.proj(9,5):错误MSB4018:   在BuildUtilities.TFSManager.BaselineProject(工作空间的工作区,对象[]数据)

d:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018 :   在BuildUtilities.TFSManager.Execute(ExecuteTFSAction executeTFSAction,对象[]数据)

d:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018 :   在BuildUtilities.TFSManager.BaselineProject(字符串版本)

d:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5):错误MSB4018:    在NableBuildTasks.IncrementBuildNumberTask.Execute()

D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

d:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9, 5):错误MSB4018:   在Microsoft.Build.BackEnd.TaskBuilder。< ExecuteInstantiatedTask> d__20.MoveNext()


    0警告

    1错误





Radhika

解决方案



Hi,

We use Jenkins to build the application which will connect to TFS to get latest version and update build number. This was working fine till we move to TFS 2015,update 3. now after migration, we are getting the "TF14098: Access Denied: User XXX needs Label permission(s) for $/".

I tried the option mentioned here still getting same error. https://blogs.msdn.microsoft.com/tfssetup/2015/12/04/tfs-2015-rtm-update-1-tf14098-access-denied-user-needs-label-permissions-for/

Below is the output of the Jenkins build. please help me to resolve the issue.

"D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj" (default target) (1) ->
(BuildAll target) ->
  D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018: The "IncrementBuildNumberTask" task failed unexpectedly.
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018: Microsoft.TeamFoundation.VersionControl.Client.ResourceAccessException: TF14098: Access Denied: User svcapp2 needs Label permission(s) for $/. ---> System.Web.Services.Protocols.SoapException: TF14098: Access Denied: User svcapp2 needs Label permission(s) for $/.
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    --- End of inner exception stack trace ---
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.VersionControl.Client.Repository5.LabelItem(String workspaceName, String workspaceOwner, VersionControlLabel label, LabelItemSpec[] labelSpecs, LabelChildOption children, Int32 maxClientPathLength, Failure[]& failures)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.VersionControl.Client.WebServiceLayerLocalWorkspaces.LabelItem(String workspaceName, String workspaceOwner, VersionControlLabel label, LabelItemSpec[] labelSpecs, LabelChildOption children, Failure[]& failures)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer.CreateLabel(VersionControlLabel label, LabelItemSpec[] itemSpecs, LabelChildOption options, Failure[]& failures)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer.CreateLabel(VersionControlLabel label, LabelItemSpec[] itemSpecs, LabelChildOption options)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at BuildUtilities.TFSManager.BaselineProject(Workspace workspace, Object[] data)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at BuildUtilities.TFSManager.Execute(ExecuteTFSAction executeTFSAction, Object[] data)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at BuildUtilities.TFSManager.BaselineProject(String version)
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at NableBuildTasks.IncrementBuildNumberTask.Execute()
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
D:\workspace\Build\MsBuildCommon\Archive\UpdateSoftwareVersion.proj(9,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

    0 Warning(s)
    1 Error(s)


Radhika

解决方案



这篇关于TF14098:访问被拒绝:用户XXX需要标签权限$ /的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 04:00