azure-pipelines-release-pipeline

How to automate Build/Release definitions in TFS 2018?

吃可爱长大的小学妹 提交于 2019-12-11 05:07:38
问题 I wish to automate management of my Build/Release definitions, for easy backup/restore operations. How can I do this in TFS 2018? I'm open to using either the REST API or the SDK, although I prefer the SDK whenever possible. --EDIT-- This is for TFS, not VSTS 回答1: In TFS 2018 and later versions, it supports export/import build/release definitions directly. Build/Release definitions are implemented internally as .json files, so you can see details on changes in the file’s history: Check the

Extract Zip Artifact as part of Azure App Service Deploy?

梦想与她 提交于 2019-12-11 04:48:10
问题 I'm in the process of setting up a build and release of an asp.net core web app on vsts. I've the build working with the following tasks: Build solution dotnet publish create artifact of type zip to $(Build.ArtifactStagingDirectory)/MyApp_$(Build.BuildId).zip publish -- artifact path $(Build.ArtifactStagingDirectory)/MyApp_$(Build.BuildId).zip -- artifact name MyApp_Package This all works fine... The release is an "Azure App Service Deploy" task. The "package or folder" is $(System

Can I call ARM template functions outside the JSON deployment template?

匆匆过客 提交于 2019-12-11 04:36:32
问题 So, I've got this ARM template for deploying a VM to Azure. In order to create a unique but deterministic storage account name, I use the uniqueString() function. It looks something like: "variables": { ... "vhdStorageName": "[concat('vhdstorage', uniqueString(resourceGroup().id))]", ... } I want to be able to create that same string outside the deployment template, for example in a PowerShell script, or use it as an input in a VSTS task. Is there any way for me to do this? 回答1: Assaf, This

Getting error “Version could not be created from build” while deploying WPF app to Hockeyapp via VSTS

随声附和 提交于 2019-12-11 04:08:12
问题 Everything works fine when I deploy using Visual Studio "Distribute to HockeyApp" option in VS project. But when I do the same using VSTS HTTP status code: 422. Responce: {"status":"error","message":"Version could not be created from build."} Can anyone please help me? Adding build config. 回答1: The error message already indicated the root cause: It cannot find the build version. If you click on the icon after "Binary File Path", you'll find that it is used to deploy .apk, .ipa and .appx files

Azure App Service Deploy file in use

最后都变了- 提交于 2019-12-11 03:34:08
问题 In my project we use Azure App Service Deploy task to deploy our webdeploy packages. I noticed that sometimes I get a file in use error while deploying, even when the option 'Take app offline' has been set on. What is the best way to fix this ? This is the error: 2016-12-07T15:26:44.8411101Z ##[error]Failed to deploy website. 2016-12-07T15:26:44.8411101Z ##[error]Error Code: ERROR_FILE_IN_USE 2016-12-07T15:26:44.8421096Z More Information: Web Deploy cannot modify the file 'Microsoft

VSTS - Deleting previous deployments during a release

不想你离开。 提交于 2019-12-11 02:25:36
问题 I'm working for an Azure project where the deployments can only be made using the ARM templates from Visual Studio CI and we have only read access to the Azure Portal. Currently I'm getting the below error and can make no releases. I cannot delete deployments from Portal either since I have only permission to configure build and release phases, I was wondering if there is any phase I can create where the previous deployments are deleted. So far I tried couple of things like using inline

VSTS Warning : Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again

本秂侑毒 提交于 2019-12-10 23:36:49
问题 I have below error when try to execute integration tests under VSTS CD-task Visual Studio Test . No test is available in D:\a\r1\a\SiteSearchFramework\e2e\XXX.SiteSearch.EndToEnd.Integration.Tests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again I tried few options in below solution, didn't work though. Solution-1 Logs: 2018-12-30T01:15:07.5727307Z ##[section]Starting: VsTest - End2End Tests 2018-12-30T01:15

Using VSTS Rest API, how do you Update a Markdown widget?

大城市里の小女人 提交于 2019-12-10 18:54:34
问题 I'm trying to use this REST API to Update a "Markdown" widget on a dashboard in VSTS. Using the below JSON body, per the sample, I'm getting Value cannot be null (see below)? Error Invoke-RestMethod : {"$id":"1","innerException":null,"message":"Value cannot be null.\r\nParameter name: widget","typeName":"System.ArgumentNullException,mscorlib","typeKey":"ArgumentNullException","errorCode":0,"eventId":0}At C:\Users\alex\OneDrive\Documents\Scripts\VSTSPowershell\VSTSAuthenticateAndInvoke.ps1:36

Version 4 of Azure App Service Deploy - *.deploy.cmd not found

流过昼夜 提交于 2019-12-10 18:07:54
问题 I am trying to release my application to Azure using Version 4 of Azure App Service Deploy and using publish profile for the connection. Unfortunately, the release always gets stopped at deployment stage with the following log: 2018-06-05T13:46:47.1570167Z ##[section]Starting: Deploy to Azure 2018-06-05T13:46:47.1577464Z Task : Azure App Service Deploy 2018-06-05T13:46:47.1577875Z Description : Update Azure WebApp Services On Windows, Web App On Linux with built-in images or docker containers

VSTS agent very slow to download artifacts from local network share

て烟熏妆下的殇ゞ 提交于 2019-12-10 09:22:38
问题 I'm running an on-prem TFS instance with two agents. Agent 1 has a local path where we store our artifacts. Agent 2 has to access that path over a network path (\agent1\artifacts...). Downloading the artifacts from agent 1 takes 20-30 seconds. Downloading the artifacts from agent 2 takes 4-5 minutes. If from agent 2 I copy the files using explorer, it takes about 20-30 seconds. I've tried adding other agents on other machines. All of them perform equally poorly when downloading the artifacts