ms-release-management

Visual Studio Team Services Release/Deploy fails - “No package found with specified pattern”

假如想象 提交于 2019-12-04 16:48:54
问题 I'm trying to implement continuous integration and continuous deployment to my DEV Azure App Service. I'm using the hosted agent on Visual Studio Team Services. The "Deploy Website to Azure" step on my Release definition keeps failing with the error "No package found with specified pattern". Any ideas? 回答1: "More than one package matched with specified pattern. Please restrain the search patern [sic]." error usually occurs when 2 or more packages were found by the task since you entered "xxx\

When should I “Release” my builds?

与世无争的帅哥 提交于 2019-12-04 14:49:10
We just started using Visual Studio Release Management for one of our projects, and we're already having some problems with how we are doing things. For now, we've created a single release stage, which is responsible for deploying our build artifacts to a dedicated virtual machine for testing. We intend to use this machine to run our integration tests later on. Right now, we have a gated checkin build process: each checkin fires all the unit tests and we configured the release trigger to happen on this build also. At first, it seemed plausible that, after each checkin, the project was deployed

How to deploy to Azure Resource Group using VSTS release management

旧城冷巷雨未停 提交于 2019-12-04 13:16:53
I am new to Visual Studio Team Services Release Management. My goal is to automate a deployment of an ASP.NET MVC application to the Azure App Service. Trying different approaches, I created a Service Endpoint that is certificate based and one that uses a service principal (SPN). My build definition already builds a web deploy package, and the release definition is linked against that and can use this artifact. Success 1: A deployment of the app using the Azure Web App Deployment Task already succeeded - almost. Shortcoming 1: I do not understand how I can specify the correct Resource Group

Release Management sets builds to Retain Indefinitely

北慕城南 提交于 2019-12-04 11:11:28
We are using Microsoft's Release Management tool for automating the deployment of our solution to our various dev servers. This tool is ideal for us because it can perform more complicated deployments that span multiple servers. In this sense, it is working fine and everything is deploying correctly. A minor issue is that after Release Management automatically deploys a build, it sets the build to "Retain Indefinitely" which is indicated by the Lock icon. Since we are doing continuous deployment, we are retaining a large number of builds and the Build Definition's retention policy is

Failed to deploy component - “Cannot deserialize the current JSON object …”

旧街凉风 提交于 2019-12-04 05:00:55
Background Information TFS 2015 RC2 Release Management Server 2015 Azure VM with 2015 deployment agent Physical local machine with 2015 deployment agent Both machines need the drop location using the Through Release Management Server over HTTP(S) option. Currently we are using the HTTP side of things over port 1000. Workflow Stop App Pool (Working) Stop Website (Working) Copy website directory to backup location (Working) Backup Database (Working) Deploy Component (Not Working), using either xcopy msdeploy (web deploy package) The Error (TL;DR) The same error is received every time, it doesn't

VSTS Release Management: filter by branch on artifact source

…衆ロ難τιáo~ 提交于 2019-12-04 00:56:21
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 is documented in Microsoft's typical use case for Release Management . For both of these pipelines, I

Tagging a TFS Git repository during a release

三世轮回 提交于 2019-12-03 16:26:00
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 on every commit that would generate a lot of tags which we don't care about (as they are not deployed

Visual Studio Team Services Release/Deploy fails - “No package found with specified pattern”

最后都变了- 提交于 2019-12-03 09:51:41
I'm trying to implement continuous integration and continuous deployment to my DEV Azure App Service. I'm using the hosted agent on Visual Studio Team Services. The "Deploy Website to Azure" step on my Release definition keeps failing with the error "No package found with specified pattern". Any ideas? Eddie Chen - MSFT "More than one package matched with specified pattern. Please restrain the search patern [sic]." error usually occurs when 2 or more packages were found by the task since you entered "xxx\*.zip" in "Package or Folder" setting of the task. So you just need to update it to

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

夙愿已清 提交于 2019-12-01 15:21:25
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 $(System.DefaultWorkingDirectory)/somepath/CurrentName.txt Use the Run Command Line task or do it in a

Interactive variables for release management

旧巷老猫 提交于 2019-12-01 04:48:26
问题 In Build definition for VSTS, you could declare a variable and allow to change it at queue time as in this snapshot Could I do the same for the variable in Release definition? Right now I have a Release definition which has an environment called Sharepoint . In this environment, I have a PowerShell task to upload a zip file of build artifact to Sharepoint Online. To upload a file using SharePoint API, I need a SharePoint account credential which I store as a variable for the this Sharepoint