tfs2015

TFS 2015 Release management access build variables

耗尽温柔 提交于 2019-12-04 03:37:03
In TFS 2015 we have a build, that will automatically trigger a new release. It is realized with the new script based build definitions . Now I want to pass a user variable from build to release. I have created a variable "Branch" in the build. In the automatically triggered release I try to access it. But it is always empty/not set. I tried it with $(Branch) and $(Build.Branch) . I also tried to create a variable in release with these names, without success. Is there any chance, to access a user variable from the build definition in the release? I do it now with some custom powershell scripts.

Team Foundation Server 2015 (tfs2015) run git gc --prune=now on orgin/remote

℡╲_俬逩灬. 提交于 2019-12-03 20:54:28
问题 Is there a way to run git gc --prune=now on remote Team Foundation Server 2015 (tfs2015)? Or is the only way to run git gc --prune=now locally then create new repository on tfs2015 and push it to new remote, then delete the old repository, and rename new repository to old name. Don't forget to turn off the liking commit when doing that. 回答1: See https://blogs.msdn.microsoft.com/congyiw/2015/12/14/why-does-cloning-from-vsts-return-old-unreferenced-objects/ - this is a known limitation of TFS

build definition – only empty queue

别等时光非礼了梦想. 提交于 2019-12-03 14:16:00
If I am creating a build definition, I can’t choose a Default agent queue. Not so long ago, I can create build definition which includes the default queue. I don’t know what the change was, that it doesn’t work anymore. If I go to edit a correct created build definition and then I try again to create a definition, I can choose the default queue. What is the reason for that? Editing an existing build definition before creating isn’t the solution, because I have many projects and some have a correct build definition and some have no build Definition. If you are meaning the Default agent queue

Debug and release nuget packages local repository

亡梦爱人 提交于 2019-12-03 12:34:30
问题 We are experimenting with nuget for our visual studio projects. However, we only (or at least mainly) use nuget for our own external references, and we store them in a local repository (network share). What I would like to know is how to handle the whole debug/release situation. Concrete (simplified) situation: We have a main project that has references to two shared components that we developed ourselves. These shared components are also used in other products of our company When we build

Is there a .NET API equivalent to the “Build 2.0” REST API for TFS 2015?

给你一囗甜甜゛ 提交于 2019-12-03 11:45:38
The REST API Reference for VS Team Services and TFS page separates the "Build 1.0" and "Build 2.0" APIs. It seems like such a difference also exists in the .NET API because running the following code only lists the "old" XAML build definitions and not the new ones. var tpc = new TfsTeamProjectCollection(new Uri("http://tfsurl")); var buildServer = tpc.GetService<IBuildServer>(); var def = buildServer.QueryBuildDefinitions("Project Name"); // Finds only XAML definitions Is there a new DLL I can reference to write equivalent code that will work with the new TFS or is the web API all there is?

AJAX cross domain issue with Visual Studio Team Services REST API

安稳与你 提交于 2019-12-03 07:36:19
I'm trying to write a JavaScript client for Visual Studio Team Services REST API which send AJAX requests to our self hosted Team Foundation Server 2015 but I'm facing to a cross domain issue. The API requires credentials to authenticate but due to security reasons, the browser blocks my requests because the parameter Access-Control-Allow-Origin is set with the wildcard * . I tried to add this parameter in HTTP Response Headers in IIS Manager and also in the TFS web.config file (which is actually the same) but I got an error telling me that this parameter has two different value (eg: * and

TFSSecurity to change git branch permissions

£可爱£侵袭症+ 提交于 2019-12-02 17:18:10
问题 I am implementing the TFS Security commands to change a git master branch acess control permissions to DENY for contribute field. Below is the command I am using: /tfssecurity.exe /a+ GitRepositories repositories/[543473b8-6186-42b3-bdab-b22bc44cc8f8/] GenericContribute n:'"[Projectname]\TFSGroup'" DENY /collection:CollectionURL" I am using powershell 3.0 for this project and I get below error Error: The security namespace GitRepositories does not exist. Could someone help me with this? 回答1:

Which nuGet package for namespace Microsoft.TeamFoundation.Framework.Server

眉间皱痕 提交于 2019-12-02 14:29:34
问题 I'd like to implement a server side plugin for TFS 2015, actually an event handler. I've found several examples which start with the general instruction like "Just implement the ISubscriber interface...". This should be in the namespace Microsoft.TeamFoundation.Framework.Server . But I am not able to find a nuGet package containing this interface. I've already installed almost all available TeamFoundation packages available. But to no avail. Could somebody point me into the right direction,

TFS reparent to be a grandchild

让人想犯罪 __ 提交于 2019-12-02 13:19:47
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! Once you have completed a baseless merge between where it was and where you want tit to be you will be

Create Large Amount of Work Items in TFS Using Javascript REST API

旧街凉风 提交于 2019-12-02 11:48:30
I need to create around 6000 work items via my TFS extension. I use typescript and REST API in my extension. below is the code I use to create work item var ops = [ { path: "/fields/System.Title", op: "add", value: "Hello world" } ]; var options = { url: 'http://localhost:8080/tfs/DefaultCollection/Agile Git/_apis/wit/workItems/$Bug?api-version=2.2', username: 'username', password: 'password', domain: 'domain', method: 'PATCH', headers: { 'Content-Type': 'application/json-patch+json' }, body: JSON.stringify(ops) }; httpntlm.patch(options, function(err,res) { console.log("patch complete");