tfs2015

Upgrading TFS 2015 Build Agent

僤鯓⒐⒋嵵緔 提交于 2019-12-09 16:57:46
问题 I would like to upload on my TFS 2015 some of the build tasks that are available here https://github.com/Microsoft/vso-agent-tasks. I do have a problem with certain task as they do require a minimum agent version of 1.89.0. My build agents are 1.83.2 version. Now, the question is, how do I update my agents for a given pool? If I do right click the agent pool on my TFS and choose update all agents option, nothing happens. I suppose because the latest version of my agent available on TFS is the

TFS 2015 Release management access build variables

谁都会走 提交于 2019-12-09 16:23:54
问题 In TFS 2015 we have a build, that will automatically trigger a new release. It is realized with the new script based build definitions. Now I want to pass a user variable from build to release. I have created a variable "Branch" in the build. In the automatically triggered release I try to access it. But it is always empty/not set. I tried it with $(Branch) and $(Build.Branch) . I also tried to create a variable in release with these names, without success. Is there any chance, to access a

SpecFlow + VSTS/TFS 2015

末鹿安然 提交于 2019-12-09 03:42:27
Using the new build system in TFS2015/VSTS, my SpecFlow tests aren't getting picked up. Within the same project, classes and methods decorated with [TestClass] and [TestMethod] , respectively, are picked up and tested by TFS. What are the basic requirements for TFS2015/VSTS to run a SpecFlow 2.0 test? EDIT: Adding packages.config contents. As you can see, I have SpecRun installed, and from within Visual Studio, I'm able to run SpecFlow tests as I'd expect (i.e. they all appear in Test Explorer) <?xml version="1.0" encoding="utf-8"?> <packages> <package id="NUnit" version="3.0.1"

Find out the users that has logged-in to TFS in last 6 months

筅森魡賤 提交于 2019-12-09 00:37:29
I am trying to find out the users that has logged into TFS 2015 Update 3 in last 6 months. Solution using C#/ REST API is good, if not available is there a way to generate the report using SQL. I have followed this: This . I think the Query is not compatible with TFS 2015 Update 3 database. This is only possible if you don't clean up or archive the contents of the tbl_command in the TFS databases. By default these are cleaned up after 7 days (from the top of my head). The limit can be changed by altering the job definition (which may need to be redone after each service pack installation). Or

Getting profile information from tfs REST API showing Page not found

戏子无情 提交于 2019-12-08 14:12:32
问题 Am sure this might have been asked before.I have searched like anything not getting any information thats why i thought of posting here. any help is appreciated https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0 this REST API always giving Page not found tfs2015 server using. 回答1: The REST API you mentioned is for VSTS : https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0 For on-premise TFS (TFS 2015 in your case), you can use below REST API

Find out the users that has logged-in to TFS in last 6 months

左心房为你撑大大i 提交于 2019-12-08 05:53:55
问题 I am trying to find out the users that has logged into TFS 2015 Update 3 in last 6 months. Solution using C#/ REST API is good, if not available is there a way to generate the report using SQL. I have followed this:This. I think the Query is not compatible with TFS 2015 Update 3 database. 回答1: This is only possible if you don't clean up or archive the contents of the tbl_command in the TFS databases. By default these are cleaned up after 7 days (from the top of my head). The limit can be

Restoring NuGet packages from custom Nugetserver using TFS Build 2015

余生颓废 提交于 2019-12-08 05:47:27
问题 We have a large number of solutions in our source control, which all use NuGet packages from a custom source (http://nugetserver/nuget). All solutions restore and build successfully locally within Visual Studio. Using the new TFS 2015, our build definition looks like this: The NuGet Installer step is there for us to restore our packages from a custom resource: There is however no NuGet.exe file in the custom NuGet server directory. As suggested here tried just setting the -source to "https:/

TFS 2015 Build vNext recursive variable substitution

本小妞迷上赌 提交于 2019-12-08 05:34:07
问题 Is it possible that the variable substitution is not recursive? Example1: Variable Value SqlInstance (localDb)\mssqllocaldb DbCatalogName FooDb ConnStr data source=$(SqlInstance);initial catalog=$(DbCatalogName)$(Build.BuildId); During the build the connection string substituted to: data source=(localDb)\mssqllocaldb;initial catalog=FooDb3211; This configuration works perfectly. But if i move the BuildId parameter to DbCatalogName variable it won't be substituted. Example2: Variable Value

TFS 2015 vNext force build number

放肆的年华 提交于 2019-12-08 04:50:49
Back in TFS 2013 you could temporarily hardcode a build number and then switch back to auto increment to skip ahead with build numbers. Now with TFS 2015 vNext, it seems like I can no longer do this. I went to make a new build definition and wanted to carry on from the last build number from my XAML build but it wouldn't move up. Any ideas or workarounds for this? It's also supported. Please check this link for detail steps: Generate custom build numbers in TFS Build vNext update Unfortunately, it's impossible. $(Rev:.rr) Its start by one. What is $(Rev:.rr)? To ensure that every completed

VSTS build summary tab with visible condition or Task dependency

戏子无情 提交于 2019-12-08 03:33:27
问题 I try to add new custom tab to summary page for build result, but which will be added only for builds with my custom build Task. For example, Task "publish artifacts", only if this task was added, the tab "artifacts" added in summary page. I want the same behavior for my task and tab. For now, I've just added in vss-extension.json, in "contributions" { "id": "build-info-tab", "type": "ms.vss-build-web.build-results-tab", "description": "A tab contributing to build results view", "targets": [