Unable to create TFS build definition (TF225000) a

2019-04-10 02:14发布

问题:

I am not able to create a build definition on my TFS 2013 team project as I get the error:

I am in the Project Administrator group. I was added to the Project Collection Build Administrators group as a possible workaround but I still get the same error.

The team project has no “Build Administrators” group which is an obvious deficiency per Project-level groups in Permission Reference for Team Foundation Server from MSDN.

My environment is an on-prem TFS 2013 server that was recently upgraded from TFS 2010. The team project has no existing build definitions and has never used TFBuild before. The team project may have existed under an earlier version of TFS, that is unclear.

Q1: Any suggestion how to resolve this or further avenues of investigation?

My best guess is that the TFS admin will have to use the TFSSecurity tool to create the Build Administrators group and assign build-level permissions to it and the Project Administrators group. Probably the TFS admin should check the other team projects of the same vintage that were part of the TFS upgrade.

Q2: Also how and when permissions are assigned to “Build Definition Authors or Builders”, as shown in Build-level permissions from the same MSDN article?

I am not the TFS admin, just hoping to prime their work as they are overloaded.

My question may be related to Where is the “Edit build definition” permission in our TFS 2013 installation? but the symptoms are not all the same.

回答1:

You will need to have the appropriate permissions. First in visual studio go to your Builds tab and select "Actions | Security...".

After that you need to make sure that you have the correct permissions listed.

Simples...