tfs

How to get all build variables and values with vNext Build in Azure DevOps 2019?

无人久伴 提交于 2021-01-29 07:49:46
问题 Recently, we have upgraded our build server into Azure DevOps 2019 and there are some legacy builds. Instead of go through each variable one by one and manually check the value. Are we able to directly pull all of them together in a script? 回答1: Instead of complicated script, you could just simply use a single cmd.exe command /k set to achieve your requirement. It will print all of your build variables include customized and system even build agent variable info alphabetically. 回答2: You can

Cannot upgrade TFS to Azure DevOps Server 2019 because Sharepoint extensions are detected

雨燕双飞 提交于 2021-01-29 07:45:58
问题 I have TFS 2013 v. 5 (Trial version) installed and I want to upgrade it to Azure DevOps Server 2019. But I get the error: "Direct upgrade from Team Foundation Server 2013 is not supported. You must uninstall Team Foundation Server 2013 before you can install this version of Azure DevOps Server". I have removed the TFS Application Tier using the TFS Administration Console and restarted the computer. The Console shows: "This feature has been installed but needs to be configured". The

Overriding the Contributor group permissions

≡放荡痞女 提交于 2021-01-29 07:20:26
问题 TeamA has developers, QA and business people all of who need access to workitems. They get added to the Contributors group. However, Contributors has access to source code which only devs should have. We want to turn off Contributor access to repository branches to keep non-devs out of source code. We created a DeveloperAccess group and gave it the same permissions as the default Contributor group. We then set Contribute, Create branch, Create Tag etc permissions of Contribute to Denied ('Not

Azure Devops: Fail to get artifact content zip with TFS Client lib

孤者浪人 提交于 2021-01-29 05:21:53
问题 I want to download an artifact with Azure DevOps Services API. While programing with C#, I choose to use Microsoft.TeamFoundationServer.Client SDK, Version: 16.153.0 as a tool. I am sure I have the artifact. But After I use BuildHttpClient::GetArtifactContentZipAsync(project: "XXX", buildId: buildid, artifactName: "XXX") to get zip stream. I get exception with a message like : The requested version \"5.1\" of the resource is under preview. The -preview flag must be supplied in the api-version

An object at the specified path C:\Users\user~1.name does not exist

不问归期 提交于 2021-01-29 04:21:14
问题 So today I came across an issue whereby a powershell script was causing the deployment to fail. This job is set-up exactly the same on other machines. This one however just refused to work. The error was: An object at the specified path C:\Users\user~1.name does not exist heres the full log at the time of failure 2017-01-11T15:03:12.1295730Z Executing the powershell script: D:\Tfs\Agent2\tasks\PowerShellOnTargetMachines\1.0.25\PowerShellOnTargetMachines.ps1 2017-01-11T15:03:12.3014605Z ##

Build project using devenv.exe in TFS 15RC1 Build Server

大兔子大兔子 提交于 2021-01-29 03:14:31
问题 I have a trouble with understanding how to use devenv.exe from TFS Build Server. There is no default step to use devenv, so I tried to use PowerShell sсript to execute devenv.exe with parameters. There are no errors in build process but I see that build result files are not updated. If I execute the script manually on a agent-machine, the build passes successfully. That is my script: $process = [System.Diagnostics.Process]::Start( "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7

Hoe to get all work items from Visual Studio Team Services REST API

╄→尐↘猪︶ㄣ 提交于 2021-01-29 00:38:35
问题 I need to fetch 5000> work items on daily basis and need to prepare some report but REST API support only 200 slot at a time and in that case I will have do many call to API. Is there any other way to get all work items at once ??? 回答1: Which version of TFS are you using? If you are using on-premise TFS 2018 or VSTS, then you can use the REST API - Reporting Work Item Revisions - Read Reporting Revisions Get or Reporting Work Item Revisions - Read Reporting Revisions Post to get all the work

Hoe to get all work items from Visual Studio Team Services REST API

做~自己de王妃 提交于 2021-01-29 00:34:24
问题 I need to fetch 5000> work items on daily basis and need to prepare some report but REST API support only 200 slot at a time and in that case I will have do many call to API. Is there any other way to get all work items at once ??? 回答1: Which version of TFS are you using? If you are using on-premise TFS 2018 or VSTS, then you can use the REST API - Reporting Work Item Revisions - Read Reporting Revisions Get or Reporting Work Item Revisions - Read Reporting Revisions Post to get all the work

TFS REST Api Update Build Definition Or Pass Variable While Queuing the Build C#

风流意气都作罢 提交于 2021-01-28 21:47:54
问题 I've ran into a problem while trying to update my existing build definition in TFS by a console application written on C#. I am queuing a build successfully but the arguments i pass in parameters are not applied in the build as I can see. I tried to update the definition before I trigger it but i receive bad requests on it also.Which approach is better and if someone did it before I will ask for assistance with it. The only thing i need is to pass some parameters. I prefer not to pass strings

TFS REST Api Update Build Definition Or Pass Variable While Queuing the Build C#

我们两清 提交于 2021-01-28 21:23:42
问题 I've ran into a problem while trying to update my existing build definition in TFS by a console application written on C#. I am queuing a build successfully but the arguments i pass in parameters are not applied in the build as I can see. I tried to update the definition before I trigger it but i receive bad requests on it also.Which approach is better and if someone did it before I will ask for assistance with it. The only thing i need is to pass some parameters. I prefer not to pass strings