tfs-2015

Get commits of an item in one branch with TFS REST API

混江龙づ霸主 提交于 2019-12-12 02:32:28
问题 I am trying to get the history for one particular item in one particular branch in my git repository, using the Team Service REST API (https://www.visualstudio.com/en-us/docs/integrate/api/git/commits). I have this structure in my repository. Repository1 -- Branch1 -- Item1 -- Item2 -- Branch2 -- Item1 -- Item3 How can I get the commits for just Item1 in Branch1? I have tried to POST: https://fabrikam.visualstudio.com/DefaultCollection/_apis/git/repositories/278d5cd2-584d-4b63-824a

Determine Current Visual Studio 2013 Test Agent Version

妖精的绣舞 提交于 2019-12-12 00:46:54
问题 We are using TFS 2015 and we are trying to run build definition on a remote server with a test agent. TFS complains that our test agent version is too old: No agent found in pool 1 which satisfies the specified demands: Agent.Version -gtVersion 1.94.0 The question is: how can you tell the current version of the agent? 回答1: You can see it on the Agent pools pagein TFS under Capabilities. 来源: https://stackoverflow.com/questions/38667507/determine-current-visual-studio-2013-test-agent-version

TFS2015 - Determine impacted tests during vNext build

偶尔善良 提交于 2019-12-12 00:19:17
问题 We've got several thousand unit tests that run in one of our projects. These currently take over ten minutes to run, and I'm trying to reduce this time. One of the things I'm looking at is determining which tests are impacted by the latest code changes and only run those impacted tests. This seems to be a feature that TFS has, but all of the tutorials are from TFS2010 and the old XAML builds and not for the new vNext builds in TFS2015. Does anyone have any experience in getting this to work?

How to specify SQL Server instance for TFS Express 2015

自作多情 提交于 2019-12-11 23:36:11
问题 I have SQL Server 2014 Express with three instances installed. I want to install Team Foundation Server Express 2015 and use third instance for it. But there is no way to tell TFS to use this third reserved instance, it always forces itself to first SQL Server instance, where is my production database! Don't tell me that it is not possible to select whatever SQL Server instance you want... I took screenshot of TFS Server Configuration Wizard and you can see there is no way to specify this

TFS 2015 API ignores ChangedBy

蓝咒 提交于 2019-12-11 21:13:59
问题 I have a WebApplication that creates and changes WorkItems through the API. I want the "ChangedBy" field be set to a specific string-value. This worked well with TFS 2013. After upgrading to TFS 2015 my value is ignored and ChangedBy is always set to the identity of the user that I use for connecting to the TFS. This is my code: //Set some values on the WorkItem item.Fields["ChangedBy"].Value = "MyUserName"; item.Save(); Is there a way to enforce the behaviour like it was in TFS 2013? 回答1:

Can I install two instances (2012 and 2015) of TFS on the same server

故事扮演 提交于 2019-12-11 14:40:10
问题 We are looking at upgrading, but management does not want to buy another server. We currently have TFS 2012 installed. Can I install TFS 2015 beside it or will that create a problem? I would imagine I would at least need to configure a different port for TFS web. 回答1: No you cannot. The installer for 2015 will force you to remove the 2012 Application Tier. Your SQL Server database server will be shareable as long as it's a version that supported by both 2012 and 2015 (SQL Server 2012 (minimum

Using SourceVersion and rev:r in TFS2015 build names

别说谁变了你拦得住时间么 提交于 2019-12-11 14:35:20
问题 We have a process we worked out with our XAML builds that used the TFS change set number in the name of the individual builds. We are trying to convert some of these builds to the new build system on TFS 2015 and running into issues getting change set into the build name. If we use $(Build.SourceVersion)$(Rev:.r) in the Build Number Format field of the build definition, we get an output of C12345.1 on a triggered build, but then .1 on a manually queued build. We would expect to see C12345.2 .

TFS Build ignores configured Code Analysis ruleset

本秂侑毒 提交于 2019-12-11 13:35:05
问题 I have a solution that is using an hybrid .csproj and project.json combination (for nuget management purposes). So basically the "project.json" file is working as a "packages.config" file with a floating version capability. This solution is using a custom RuleSet that is being distributed via Package, and is imported automatically. On the dev machine, works without a problem. At the build machine (that is, inside the machine itself, working as an user) the solution also compiles without a

Work Item to Build / Work Item to Release, relationships in TFS 2015 database

∥☆過路亽.° 提交于 2019-12-11 13:05:24
问题 Where are the relationships between Work Items and Build/Release stored in the Team Foundation Server 2015 (Update 2.1) database? The Build and Release APIs, as per their documentation, can query for any Work Items that relate to a Build/Release as follows: http://tfsservername:8080/tfs/collectionname/Sandbox/_apis/build/builds/2872/workitems http://tfsservername:8080/tfs/collectionname/Sandbox/_apis/Release/releases/19/workitem The WorkItem API has no such call available. Background info

How to change a tfs build variable in script

北城余情 提交于 2019-12-11 12:53:15
问题 I'm using TFS2015 update 1. I want to pass information from one build step to the next, how is this possible? That seems like a very simple task, but I can't figure out how that's suppose to work. Passing a variable to a build step is easy, but passing information from one step to the next seems to be impossible. I hope I'm wrong. 回答1: You can call the task.setvariable Logging Command, which sets a variable in the variable service of taskcontext. The first task can set a variable, and