tfs-2015

TFS 2015 builds : Is it possible to use Variables in Repository mappings?

早过忘川 提交于 2020-02-03 04:39:45
问题 When creating a vNext build on TFS 2015 you can define variables, which are then used in build steps, and can also be used as environment variables in scripts the build runs. The build I am working on runs scripts that pulls files from mapped locations, so it would be great if I could define a variable and use it in a mapping so that for example, if I update a reference in the project the build is building, I can simply update the variable with the new location and have the repository

Start vNext build from Powershell and get artifacts

可紊 提交于 2020-01-20 22:13:06
问题 In order to automate our deployments, I would like to rebuild an application, based on a given ChangeSetId. Once this build has completed, I want to get the artifacts of the build (the .exe), so we can deploy them. For the sake of the question I am focussing on the 'Get artifacts from build' part. For DevOps purposes, I'd like to use PowerShell, since it should be able to access the TFS API libraries and because MS recommends using it. Environment I've set up Builds in our On Premise TFS 2015

TFS 2015 won't upload custom process template

邮差的信 提交于 2020-01-14 13:42:30
问题 We have a customized version of the Agile template that we've been using since TFS 2013. I have upgraded the template for 2015, which was no big deal. But when I go to upload it I get error "VS402479: You can't overwrite the Agile process template, because it's locked". I have followed the instructions from MSDN to upload an updated process template. I have changed the name, description, and minor version strings as described in the documentation. Here are the values from the metadata node in

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

佐手、 提交于 2020-01-11 13:37:10
问题 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:

TFS2015 REST API Build definition update

三世轮回 提交于 2020-01-11 09:52:21
问题 I'm trying to update a build definition through REST API with PowerShell. The script used is: $url = "http://tfs:8080/tfs/collection/project/_apis/build/definitions/$($buildId)?api-version=2.0" $obj = Invoke-RestMethod -Uri $url2 -Method Get -ContentType "application/json" -UseDefaultCredentials $json = ConvertTo-Json $obj Invoke-RestMethod -Uri $url -Method Put -Body $json -ContentType "application/json" -UseDefaultCredentials First I've tried with a new empty definition and I've got the

TFS 2015.3 Release Management Update Release Description After The Fact

我与影子孤独终老i 提交于 2020-01-07 05:34:07
问题 Is it possible to update a Release's Description after it's created? It seems that you get one chance when you create it, but if you miss it, you cannot add/update the description afterward. On-prem TFS 2015 Update 3. 回答1: You can’t update a release’s description in TFS. This feature is available on Visual Studio Team Services. 回答2: You can update the release description. Click on the highlighted in the image below to open the dialog. 来源: https://stackoverflow.com/questions/44655981/tfs-2015

TFS 2015. the $(var.SourceLocation) variable is not available at gated-check in

时光怂恿深爱的人放手 提交于 2020-01-07 05:14:09
问题 We are migrating from old XAML build definition to new TFS 2015 build. In old we have gated-check in that is working fine. In new one we have such option on "Triggers" tab. However I want use commit ID that trigger build. The variable $(Build.SourceVersion) is responsible for this, but for gated-check in it is not being set. It looks right, because commit was not accepted by TFS yet. The question is how to grab this commit ID either during gated-check in or following CI ? Should I create just

TFS user cannot set permission for create tag for other users

依然范特西╮ 提交于 2020-01-06 20:17:30
问题 I have some users who are members of a group I have created. The group has most permissions enabled (set to Allow) including both "Create tag definition" and "Edit project-level information". The idea was to put certain users in a group that has permission to administer certain aspects of a project without adding them to the built in Project Administrator group. However although these users can add users and groups and do MOST things they cannot set the "Create tag definitions" for users in

How to check-in to TFS when all files have been replaced/removed

天大地大妈咪最大 提交于 2020-01-06 19:36:21
问题 I am new to team foundation server and visual studio. I have a non-VS project that I need to version control through TFS because of company policies. I use a different tool than TFS to edit my project, so when I was ready to push my changes I just checked out the project from TFS and cleaned out the local directory to replace with the new version of the project. I am now unable to check-in the changes because TFS is looking for the files that I deleted. If I need to clean out and replace all

Error: No neutral-language version resource found in the file

╄→гoц情女王★ 提交于 2020-01-05 09:04:47
问题 I am using TFS 2015 CI to publish my application but during Nuget Restore. I am getting error. "Error: No neutral-language version resource found in the file" I have added neutral-language to my project but its not working at all. Have you guys ever faced this error? 回答1: Which Nuget Version do you use? Seems the Nuget version 4.x have issues. The message you are seeing is related to some code in the nuget task where we are trying to detect the nuget version and its associated 'quirks'. Newer