tfs-2015

How to correctly pass variables & source version to API 2.0 VNext Build in TFS 2015

那年仲夏 提交于 2019-12-25 09:24:19
问题 I'm having difficulty finding how the correct way to pass defined variables and build definition arguments to the new API 2.0 build engine with TFS 2015. I'm using TFS 2015 Update 3 on-premise . I've triggered a POST with powershell that looks like this: $Build_Definition_ID = 1234 $TFSInstanceURL = 'http://tfsservername:port/tfs' $ProjectCollection = 'CollectionName' $TeamProject = 'ProjectName' $Changeset = "12345" $UserName = "$env:USERDOMAIN\$env:USERNAME" $UserNamePartial = $env:USERNAME

TFS 2015 server side plugin deployment (using VS 2013)

允我心安 提交于 2019-12-25 08:33:00
问题 I am using Visual Studio 2013 and wrote a TFS 2015 server side plugin. Created a local TFS 2015 environment and checked-in files to test it, I found that it works as expected. I want to deploy my plugin: Following the instructions on internet I changed my plugin code's output path to : ..............\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\Web Services\bin\Plugins. So, my plugin.dll and plugin.pdb files are in this location. After this step; I am stuck, I tried to

TFS User needs permission to update build information

こ雲淡風輕ζ 提交于 2019-12-25 07:39:32
问题 Like I already asked in Visual Studio Forum, I wrote an application that binds work items to builds based on svn logs. When I try to hit buildDetail.Information.Save(); I get the Exception User (Bob) needs permission to update build information. This user got the right permission set in the build permission dialog and I also set it in the admin command line on the tfs itself C:\Program Files\Microsoft Team Foundation Server 14.0\Tools\tfssecurity /a+ Build ProjectName UpdateBuildInformation n

How to change the build timeout on TFS 2015 XAML build agent

北城以北 提交于 2019-12-24 05:18:09
问题 Using the on premise TFS 2015 XAML build agent. I need to change the job timeout value. Preferable on a build definition by build definition basis. However if I have to just changing the agent timeout value is fine as well. It appears that the timeout is current 30 minutes. I see no options on the Team Foundation Server Administrator Console, and no options in the build definitions. Please note this is not a vNext build 回答1: You can change the execution time by editing the XAML build

DotNet CLI build fails for VS .NET Core project when run from TFS 2015 build agent

喜欢而已 提交于 2019-12-23 23:57:19
问题 Problem The command dotnet build ... fails when run from TFS 2015 build agent with the following errors: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(262,5): Error : Object reference not set to an instance of an object. C:\Program Files\dotnet\dotnet.exe compile-csc @(path to dotnet-compile.rsp) returned Exit Code 1 Steps to Reproduce Create an ASP.NET Core 1.0 web application with Visual Studio 2015 (Tools Preview 2). Commit solution to

Microsoft.TeamFoundation.VersionControl.Client.ItemNotMappedException even when the workspace exists and has a mapping

旧城冷巷雨未停 提交于 2019-12-23 18:34:08
问题 Using TFS 2015 update 2, an agent was installed in a machine, the agent creates its workspace: Some custom MSBuild tasks developed InHouse were implemented in the build definition that will run on the agent. Those tasks perform some operations against the TFS server. When the build definition is queued for a new build here is what I got: In the build machine I proceed to run the following script, in order to verify the existence of the workspace : # Script to find a Team Foundation workspace

Retrieving a list of agent requests from TFS REST API

风格不统一 提交于 2019-12-23 16:30:24
问题 TFS 2015.3, on premises. The REST API of TFS has an undocumented portion that deals with app pools: _apis/distributedtask/pools on the server level and further down. I can drill down all the way to agent details: _apis/distributedtask/pools/111/agents/222 . Now, in the Web UI there are two collections per agent: requests and capabilities. Does anyone know the REST API URLs for those? Adding either /requests or /capabilities yields a "Document not found" error. If the TFS API is somehow self

How to get an agent user capability in TFS Build task?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 12:36:09
问题 I've declared a user capability named "MyCapability" in a TFS 2015 build agent with a path as value. How can I get this value in the powershell script of my build task ? $env:MyCapability and $MyCapability don't work. 回答1: You cannot access the capabilities from PowerShell through a variable unfortunately. You could use the Rest Client to connect back to TFS and read the Build Agent as well as the Build Definition to read out the configured values. This will require access to the OAuth token,

In-place migration from TFS 2010 to TFS 2015

*爱你&永不变心* 提交于 2019-12-23 07:27:28
问题 I have a question about in-place upgrading from Team Foundation Server 2010 to Team Foundation Server 2015 Our current situation contains the following software versions: - Windows Server 2008 R2 - SQL Server 2008 R2 - Team foundation Server 2010 We would like to perform an in-place upgrade of this server to the following new versions. - Windows Server 2012 R2 - SQL Server 2014 - Team Foundation Server 2015 It is a single server installation on a VMWare environment. Adding additional

tfsbuild delete/destroy - founds no builds for build specification

醉酒当歌 提交于 2019-12-23 01:42:03
问题 There are 100s of builds left in our build definition indefinitely, regardless of the retention settings: i want to delete builds with scripts, i am trying run from remote PC. our tfs server is 2015.2. tfsbuild destroy /collection:http://tfsserver:8080/tfs/ProjectCollection /dateRange:01/01/2017~31/12/2017 /buildDefinition:teamProject\Builddefintion output shows: No builds found for build specification . even though there are many builds meets the criteria. any help is appreciated. Thanks!