tfsbuild

Capture output of regsvr32 in an InvokeProcess TF Workflow Activity

青春壹個敷衍的年華 提交于 2019-12-10 15:47:55
问题 I have a build process setup to build a managed solution using team build. This solution requires an unmanaged component be registered with the server before we build the solution as we interface with it via COM. The activity (InvokeProcess) I use to register the ComObject looks something like this regsvr32.exe /s ComObject.ocx The activity (InvokeProcess) I use to unregister it looks something like this regsvr32.exe /u /s ComObject.ocx I have also added the WriteBuildMessage and

TFS SDK: Query yesterday's builds

拟墨画扇 提交于 2019-12-10 15:35:18
问题 I can query for all builds within a TeamProject as follows: var bServer = teamProjectCollection.GetService<IBuildServer>(); IBuildDetail[] builds = bServer.QueryBuilds("myTeamProject"); This yields all builds within the given myTeamProject . But I am only interested in yesterday's builds. I can obviously filter after I 've gotten the results within builds . Still I am wondering if there exists an overload of QueryBuilds() to get builds within a provided timespan. Background: In my original

Is Team Build 2012 compatible with Team Foundation Server 2010?

别说谁变了你拦得住时间么 提交于 2019-12-10 13:49:13
问题 What is the experience connecting Team Build 2012 to a Team Foundation Server 2010? We need to create a couple of more build agents, but Team Foundation Server will not be upgraded until a later time. 回答1: Confirmed: this will not work. You must upgrade TFS 2010 to 2012. I received an error attempting to install a 2012 build service against TFS 2010: "The register command is not supported for Team Foundation Server [my server] because the server is not compatible." After upgrading TFS 2010 to

TFS Build fails with “Could not copy file” of file not even in the project

ε祈祈猫儿з 提交于 2019-12-10 13:48:43
问题 I have TFS Build set up, which worked fine until yesterday. Since then I get the following error from one project: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets (182): Could not copy the file "Content\themes\base\images\ui-bg_flat_0_aaaaaa_40x100.png" because it was not found. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets (182): Could not copy the file "Content\themes

Is it possible to configure the 'message highlight pattern' for the TFS2015.2 build definition command line step?

走远了吗. 提交于 2019-12-10 13:44:45
问题 It is possible to configure the Error message highlight pattern and Warning message highlight pattern of the TFS2015.2 Command Line step? For example, I may have the following build definition that runs a command line utility, say gulp , to perform some tasks such as code linting. The precise standard output (via stdout ) of this utility would be varied depending on the precise lint tasks being run. For example, one tool for analysing TypeScript code and another tool for analysing Sass code.

VSTS Build expired

送分小仙女□ 提交于 2019-12-10 13:20:11
问题 I created a Pull Request which triggers the build and the build was successful, but after some time my build status changed to "build expired" so to finish the pull request I need to trigger it one more time. So the question is: Why has this happened and how do I avoid an expired build? 回答1: "Build Expired" is a feature of branch policies. Set a build expiration to make sure that updates to your protected branch don't break changes in open pull requests. Always require a new build This option

How to delete/unregister build agent on TFS 2015

≡放荡痞女 提交于 2019-12-10 12:32:55
问题 I have set up TFS 2015 with dedicated server to store the build agent. However, when I delete the build agent on TFS 2015 app server, it still show up on build server, in windows "Services" Now the build server display error because the service exist but not running. How can a build agent be removed from TFS 2015? 回答1: Update: Just execute: C:\YourAgentFolderPath\agent>agent\vsoagent /unconfigure Answer from year 2016: Go to the folder on the Build Server where you have unzipped your build

How to use VSTS Variables in FTP, including Secure Variables

纵然是瞬间 提交于 2019-12-10 12:24:32
问题 I need to execute the following script: Param( [string]$HostName, [string]$UserName, [string]$Password, [string]$SshHostKeyFingerprint, [string]$RemoteFTPFolder, [string]$GitUserEmail, [string]$GitUserName, [string]$PersonalAccessToken, [string]$VSTSProjectName ) try { # Load WinSCP .NET assembly Add-Type -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll" # Setup session options $sessionOptions = New-Object WinSCP.SessionOptions -Property @{ Protocol = [WinSCP.Protocol]::Sftp HostName =

vNext Build and Release Manager

笑着哭i 提交于 2019-12-10 11:54:38
问题 We are using TFS 2015. I'd like to create a build and then trigger a release (with RM). We have a webproject and a wpf app. Inside of the code we have compiler directives (#if DEBUG). And the config transformation has to be executed. My approach was to create a build for Debug and Release, publish it and copy it to a drop folder. Can anyone tell me what is the best way to achieve this? Thank you in advance. 回答1: If you want to trigger an agent-based release, you can use a custom build task:

How to start vNext TFS 2015 build revision at a specific number

可紊 提交于 2019-12-10 11:07:51
问题 I am using the vNext build system of TFS 2015. I currently have the my builds versioning in the traditional format. Major.Minor-rev.RevisionNumber. So, if I have a build for Major 1, Minor 12, the build version would look like 1.12-rev.1 when I start. I would like to know if it is possible to have the build version start at a number other than one, say 55. Such that the build version would look like 1.12-rev.55, and then increment by one as usual after that. 回答1: Unfortunately, it's