tfs-2015

How to access a build's custom variable in script in TFS 2015?

久未见 提交于 2019-12-20 03:05:52
问题 In Team Foundation Server 2015 in build definition I use my custom variables defined on Variables tab. Is there any way to access them in PowerShell build step like predefined variables can be accessed e.g. "$env:BUILD_DEFINITIONNAME"? Thank you 回答1: [disclaimer: I work on the new build system] I often advise folks to use the cmdline task or a cmd script to print out the variables (call set on windows, env on *nix). There's docs etc... but actually running it will show exactly what is really

Stop opening TFS builds in browser instead of IDE

北城余情 提交于 2019-12-19 17:42:24
问题 I recently upgraded my team's build server to TFS2015 from TFS2013. Everything is going smoothly, except from within my IDE, I can no longer open the Build Explorer. As far as I know, I have not changed any settings within my IDE, but builds now open as if I had selected the right-click context menu for Open in Browser available for completed builds. This behavior started after I finished the TFS upgrade. As far as I know, I am the only one affected on my team. Does anyone know how to

Should artifacts associated with a build record be deleted when the build record is deleted?

牧云@^-^@ 提交于 2019-12-19 10:12:27
问题 I am using the new VSO scriptable build system with an on premise build agent. The build publishes the following assets to an internal file share. Install Symbols to our internal symbol store. When a build is deleted either manually or based on retention policy the associated assets are not deleted. Should I expect that assets are deleted when the associated build record is deleted? 回答1: In 2015 RTM and currently in VSO, server drops are deleted when a build is deleted but drops to UNC shares

How do I enable C# 7 builds in Team Foundation Server 2015?

限于喜欢 提交于 2019-12-19 07:49:29
问题 We have Team Foundation Server (TFS) 2015 installed on-premises. We would like to use Visual Studio 2017 to take advantage of the latest C# language features. We are not ready to upgrade to TFS 2017. What are the steps required to allow the latest C# language features to build in TFS 2015? 回答1: I didn't follow these steps exactly, but based on what I have learned, I think they would have worked: Install Visual Studio 2017 Build Tools on the XAML Build Configuration server Add these lines to

Visual Studio 2015. Files not added to TFS

青春壹個敷衍的年華 提交于 2019-12-19 05:17:37
问题 I'm using Visual Studio 2015 update 3 with TFS hosted at visualstudio.com. When I add a C# class file to one of my projects in Visual Studio, it's not automatically added to source control. For other projects in the same solution, C# class files are added automatically, as expected. When I then add the file, manually, in the project with this problem, I get the following question; I have to confirm to add the file to source control. There is a similar question (Visual Studio 2015 new files

Copy TFS 2012 collection to another server with TFS 2015 Installed

倾然丶 夕夏残阳落幕 提交于 2019-12-18 05:19:14
问题 We have an old server machine with TFS 2012 installed on it. It has the 'DefaultCollection' of project collection. We want to copy (not move, i.e. leaving the collection in place) the 'DefaultCollection' collection to another machine which has TFS 2015 installed. How can we do that please? Thanks, ashilon 回答1: It depends a bit on how complicated your TFS installation is, but here are the steps for a simpler one server setup without Sharepoint: Detatch the collection from your current TFS 2012

Display OpenCover results in TFS 2015 build Summary

痞子三分冷 提交于 2019-12-17 19:24:18
问题 I have generated my xml coverage file as part of CI build on the TFS server using vNext 2015 build definition. How would one display the results in the TFS 2015 summary ? Either using the xml report or the html generated using the ReportGenerator. 回答1: You need to convert the results produced by OpenCover to a format which can be parsed by TFS. One way to do this would be to use the OpenCoverToCoberturaConverter NuGet package. Once you have that, you can use the Publish Code Coverage Results

Error 'No agent could be found with the following capabilities: msbuild, visualstudio, vstest'

一笑奈何 提交于 2019-12-17 16:05:24
问题 I'm setting up a new build server using TFS 2015 and after I configured the agent, when I tried to queue a build I got this error: No agent could be found with the following capabilities: msbuild, visualstudio, vstest How can this be resolved? 回答1: Install Visual Studio on your build agent, then restart the build agent. Restarting the build agent will capture the added Capabilities. 回答2: Note: First of all, you can do all this with the community edition and TFS Express 2015 on your own server

How to chain builds in TFS 2015?

江枫思渺然 提交于 2019-12-17 09:58:12
问题 Is there a way in TFS 2015 to have two builds such that the second build gets triggered whenever the first one finishes (successfully)? There are solutions for the old XAML based build system, but nothing for the new script-based system, which is what I'm using. 回答1: This question pops up every now and then. The official docs literally say "not yet" (see the last Q&A entry). There's also an ancient suggestion on UserVoice, which is in the Planned state since March this year. That's quite

How to fail the build from a PowerShell task in TFS 2015

本小妞迷上赌 提交于 2019-12-17 06:50:55
问题 I am trying to make a certain result in a PowerShell script fail the build process, but its not working for me. I am using the new build actions from TFS 2015 and tried the following options: Logging commands exit 1 I do get red text in the log window of the step as well as marked 'Issues' in the build overview, but the build result is still Green: 'Build succeeded' I want to use the failure in the script to fail the build and thus send an email using an alert on failed builds. Edit: