ms-release-management

TFS API Create Release with powershell

折月煮酒 提交于 2019-12-23 20:11:38
问题 I'm trying to queue a build and create a release using powershell. I'm able to successfully queue a build but unfortunately, the Continuous Deployment is not being triggered for the release. My hope is that I can do both of these in a powershell script that will allow me to release the application. I'm using TFS 2015 Update 3 I've been working from an article posted here: http://blog.nwcadence.com/vststfs-rest-api-the-basics-and-working-with-builds-and-releases/ In summary in performing the

Retrieving a list of agent requests from TFS REST API

风格不统一 提交于 2019-12-23 16:30:24
问题 TFS 2015.3, on premises. The REST API of TFS has an undocumented portion that deals with app pools: _apis/distributedtask/pools on the server level and further down. I can drill down all the way to agent details: _apis/distributedtask/pools/111/agents/222 . Now, in the Web UI there are two collections per agent: requests and capabilities. Does anyone know the REST API URLs for those? Adding either /requests or /capabilities yields a "Document not found" error. If the TFS API is somehow self

VSTS REST API to change security permissions on Release definition or Release definition environment

故事扮演 提交于 2019-12-23 02:21:19
问题 I cannot find any documentation referring to VSTS REST API to change security for Release Definition or Release Definition environment. I am trying to create an automation script to create a Release definition which will accept user list as a parameter and assign limited permission on the Release Definition and Release Definition environment. Is there any way of doing this? 回答1: There isn’t the REST API to change permission of release definition or release environment. I submit a user voice

VSTS Release - Define custom variable in web.config and set at release time

℡╲_俬逩灬. 提交于 2019-12-22 04:16:23
问题 I am trying to replace an appSetting at release time using VSTS Release. All post on the web refer to the old release management tool or refer to the new one but mention the replace tokens task. This task does not exist so I presume it is built in. I have set up my web.config ( MyVar ) and set up my environment variables but nothing gets replaced. And here is my release: I apologise if I am being stupid but I just can't work this out, mostly due to out of date documentation. Update 2: Ok so

VSTS Release Management: filter by branch on artifact source

时间秒杀一切 提交于 2019-12-21 07:34:53
问题 I am using VSTS build to run a CI build. This build definition is the same for all my git branches (master, develop, features, etc). I am now trying to implement a deployment pipeline using VSTS release management. I plan to have two distinct release definitions. One for feature branches and one for the more important branches like develop and master. The release definition for feature branches would be more lightweight. I think this is pretty basic and usual. In fact, that's pretty much what

Tagging a TFS Git repository during a release

我的未来我决定 提交于 2019-12-21 05:02:59
问题 I am setting our build/release environment using TFS 2017. I set up the Build to run automatically after each commit, and when we are ready to release a version of our application, a Release is manually created, and then deployed to various environments. We would like to tag released versions in our git repository in order to easily know which git revision correspond to a binary. The "Label Source" setting in the Build definition allows to tag a git revision at build time, but since we build

Visual Studio Team Services Release Definition - Task to rename a file?

假如想象 提交于 2019-12-19 13:12:10
问题 How can I rename a file in a release definition in Visual Studio Team services? Is there a built-in or marketplace task available or otherwise, how can this be achieved? Answer: Add the "Inline PowerShell" task from the marketplace Enter the following PowerShell code in the text area Param ( [string]$pathToFileToRename ) Rename-Item $pathToFileToRename NewName.txt Enter any required arguments in the arguments text box (you can use environment variables), for example. pathToFileToRename $

The item MY_ARTIFACT_NAME in container XXX could not be found

纵然是瞬间 提交于 2019-12-19 10:21:37
问题 When attempting to configure MS Release Manager based on the tutorial Deploying your applications to Azure, modified per Error when using Publish Build Artifacts on the host agent, I receive the following exception: The item MY_ARTIFACT_NAME in container 56811 could not be found. which results in the release being rejected. I have added the system.debug variable and set it to true ,(see Publish build artifacts - I'm having problems) but no additional information is provided. My Visual Studio

TFS 2017 Release Management: How to display parent PBI for Tasks under Release

点点圈 提交于 2019-12-19 05:07:20
问题 Is there any way to show the parent PBI for a Task Work item under Release in the list under TFS2017? The screenshot below shows two tasks associated with Release-3. Here I wish to be able to display the parent PBI for each of them. Either by expanding them or just by displaying an additional column with link to the parent PBI I appreciate your help Edit: I know that that there is a possibility to create a query on TFS. The problem is that I need to display the information on the parent Work

EF Code First Migrations to Deploy Older Version

会有一股神秘感。 提交于 2019-12-18 12:22:18
问题 I'm using TFS Release Management to do continuous integration and deployment. I'm using migrate.exe to perform the database migration during deployment, and this works great when you're going from an older version to a newer version. When you want to deploy an older version of the application, however, it gets more muddy. Basically, the assembly that holds your migrations for a context must know how to go from say version 3 to version 2. Normally, you use the assemblies you're about to deploy