tfs-2015

How do you send a patch request from a c# client?

烂漫一生 提交于 2019-12-23 00:51:32
问题 I have a powershell script that does this : $uri = "$($tfsUri)/$($teamproject)/_apis/build/builds/$($buildID)?api-version=2.0" $data = @{keepForever = $keepForever} | ConvertTo-Json $response = $webclient.UploadString($uri,"PATCH", $data) I'm trying to rewrite this in C#, using a Webclient. WebClient client = new WebClient(); client.Encoding = System.Text.Encoding.UTF8; string reply = client.UploadString(url, "keepForever = true"); Console.WriteLine(reply); But I get : The remote server

TFS 2015 Build: Test results not being published

不打扰是莪最后的温柔 提交于 2019-12-22 08:46:41
问题 I'm having a really weird error when TFS 2015 executes an automated test step. The results are generated, but it seems TFS unable to find them. In the end, it just says that no results were found to publish (which is weird, because it even outputs the result full path) Check below the build logs for more info: 2015-12-16T15:44:29.5816976Z Executing the powershell script: C:\TfsBuildAgents\VsoBuildAgent\tasks\VSTest\1.0.22\VSTest.ps1 2015-12-16T15:44:29.7066995Z ##[debug]Calling Invoke-VSTest

TFS Not all tests are run although the build is green

巧了我就是萌 提交于 2019-12-22 08:06:10
问题 For some reason about a quarter of our tests is not being run on TFS, build ends up green but reports only 3/4 saying all tests have passed. I guess the problem is in some tested async code that perhaps crashes the test runner or keeps running on its own. Locally in VS all tests are passing fine. Is there any way to enable crash dumps on TFS or how should I address this problem? EDIT: In TFS web interface the Summary says "All 2217 tests passed" but in Diagnotics section, under the passed

On Premise Gated Check-in Fails with “The shelveset … could not be found for check-in”

左心房为你撑大大i 提交于 2019-12-22 04:06:17
问题 I am having an issue with the new TFS 2015 Update 2 Gated Builds. After attempting a check-in the gated build queues just fine, every part of the build is successful until it reaches the last step of "Check in gated changes". When I look at the log for that step I get: [Error]The shelveset _Build_5427;Build\ad8fe058-f936-4908-91de-57e7bc6a2f9d could not be found for check-in When I look at the 'Get Sources' log, I see: 2016-04-01T19:11:12.3062092Z tf get /version:C6213 2016-04-01T19:11:13

TFS 2015 v.Next build: Parallel solution builds?

只愿长相守 提交于 2019-12-21 20:32:56
问题 In TFS v.Next build there is a possibility for parallel builds. However, I think it only works to build multiple configurations / platforms in parallel. (See this) You can specify multiple projects/solutions to build in the Projects field of the Visual Studio Build or the MSBuild build tasks. Is there a way to build these multiple solutions in parallel to save some time? 回答1: You are correct. Multi-configuration is used to Build multiple configurations with the same steps, not multiple

Cannot add queue to existing TFS 2015 Build agent pool

↘锁芯ラ 提交于 2019-12-21 17:51:54
问题 Trying to set up build server after upgrading to TFS 2015. The way I envision is: Single Agent Pool, that will have 3 queues: 1. Nightly builds 2. CI builds 3. Gated/validation builds. Each of them will have some agents, the goal is to have some control, to make sure nightly builds wouldn't consume all agent, so gated queue will always have some available agent. The problem I have now is when I try to add new queue, the option "Use existing pool" is disabled, I can only add queue with

How do I update BuildNumber using powershell

偶尔善良 提交于 2019-12-21 08:26:07
问题 I would like to update the Build.BuildNumber variable from a powershell script as a build step. I've tried: Write-Host "##vso[task.setvariable variable=BUILD_BUILDNUMBER]1.2.3.4" and Write-Host "##vso[task.setvariable variable=Build.BuildNumber]1.2.3.4" This has not worked. 回答1: You'd need to use the Update Build Number function: Write-Host "##vso[build.updatebuildnumber]1.0.0.$($env:Build_BuildId)" BuildNumber is a special case. Other variables can be overwritten using the setvariable macro

How to get PAT from on-premise TFS2015

♀尐吖头ヾ 提交于 2019-12-21 03:52:41
问题 We want to migrate our custom steps from XAML build to new build task in TFS2015 on-premise. I installed NodeJS and tfx-cli but when tfx-cli want to connect to TFS I need to provide pat (personal access token) but I cannot find where I can get it. All samples is for VSO but not for on-premise TFS2015. Is it possible to get PAT from on-premise TFS2015? 回答1: TFS 2015 doesn't support Personal Access Tokens, this feature was introduced with TFS 2017. In the mean time you'll either need to

TFS remains out of sync after Get Sources step

风流意气都作罢 提交于 2019-12-20 05:58:02
问题 We migrated to TFS 2015 RTM recently and were successful in creating build pools, configuring build agents and build definitions. During the build process, TFS performs Get Sources task and successfully completes the same and marks itself in green. The problem begins here wherein the build process does not download the entire set of files and folders, picks few folders and downloads them completely and ignores the rest. We have set Clean option to True in the Repository tab of our build

TFS reparent to be a grandchild

时间秒杀一切 提交于 2019-12-20 05:44:05
问题 Been trying all I can think of for days to get this to work. Baseless merges, reparenting, branching and then reparenting. I would like to reparent a branch to be the child of one of it's children and break the relationship between that branch and its parent. In the image below, I would like to move Cassidy-Main and Bohem-Main to be a child of Cassidy-QA and Bohem-QA respectively. Then reparent Cassidy-QA and Bohem-QA to be children of Acme-QA. Thanks in advance for any help/advice/solutions!