tfsbuild

TFS build write message to summary

我是研究僧i 提交于 2019-12-11 17:12:13
问题 I want add a message (link) in the build summary (can be a new section also, doesn't really matter): Based on this: https://blogs.objectsharp.com/post/2017/04/25/Writing-to-the-Build-Report-in-TFS-2015.aspx, I've added this line in my Powershell script: Write-Host "##vso[task.addattachment type=Distributedtask.Core.Summary;name=DotCover Results;]" However I get an error message: Unable to process command '##vso[task.addattachment type=Distributedtask.Core.Summary;name=DotCover Results;]'

Hide some built-in build/release tasks in TFS

落花浮王杯 提交于 2019-12-11 16:56:30
问题 TFS 2017 u2. The task gallery for build/release definitions is crowded by tasks that are utterly irrelevant to our software shop. They're built-in, so removing the extension is not an option. Any way to hide them? 回答1: CAVEAT I discourage you: if you need to reinstall a Task, the process is non-trivial. This has already been answered at Remove custom installed build task on tfs The idea is to use tfx build tasks delete . You need the GUID of the task: a quick way to get it is to look at the

TFS 2017 API; Queuing a build with variables

℡╲_俬逩灬. 提交于 2019-12-11 16:49:45
问题 I am trying to create a build request and specify new values for custom variables defined in the TFS build definition. I assume I can do this without updating the build definition first. I posted the following JSON to the URL: http://<server-name>/tfs/DefaultCollection/<project-name>/_apis/build/builds?api-version=3.1 . The build queued up but the variable value passed in did not override the default value. What am I missing? Do I need to specify the variable name differently? { "definition":

Not include certain folders in a continuous deployment with TFS (Skip Command?)

£可爱£侵袭症+ 提交于 2019-12-11 16:47:32
问题 Using Team Foundation Server continuous deployment with Web Depoly, is it possible to stop certain folders being deployed? And if it is, how? UPDATE You can't specify a skip rule via the command line (as in, an MSBuild Argument) because they are declared as items, not properties. A skip command can be specified in a publish profile. However it seems publish profiles are only for the inbuilt publishing in visual studio, not Web Deploy 3. Is there a way for Web Deploy to accept a publish

TFS 2015 - Build solution, package project. Also building a solution it shouldn't be

。_饼干妹妹 提交于 2019-12-11 15:28:12
问题 I have a solution with 8 projects in it and only 1 of them is a web site/app. The rest all create assemblies that are referenced in the web app. I want to build the solution and then package the web site project into a web deploy package. So in TFS, I've added the Visual Studio Build step (no other steps in the definition after this), pointed it to the solution and added the following MSBuild arguments: /p:DeployOnBuild=True /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p

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

CI and Deployment with TFS and Powershell

瘦欲@ 提交于 2019-12-11 13:02:00
问题 I am working on a CI process with automated deployment. TFS Build is building the solution, and it then uses an InvokeProcess task to kick off a Powershell script. The Powershell script deploys the database changes as a dacpac using sqlpackage, reporting services reports using the web service, fonts to the SSRS server, and the website itself to 1 or more web servers - the whole process uses a deployment configuration file to define drop paths, server ips, installation folders etc. There will

How To Run Xunit in VisualStudioOnline Build

浪子不回头ぞ 提交于 2019-12-11 12:02:59
问题 I've VS2015 RC project in my visual studio online account. In this project the tests are written with xunit. In the project I've added the following nuget packages <package id="xunit" version="2.1.0-beta3-build3029" targetFramework="net46" userInstalled="true" /> <package id="xunit.abstractions" version="2.0.0" targetFramework="net46" userInstalled="true" /> <package id="xunit.assert" version="2.1.0-beta3-build3029" targetFramework="net46" userInstalled="true" /> <package id="xunit.core"