azure-pipelines-release-pipeline

How do I edit view and edit the YAML file for the Release Pipeline in Azure Dev Ops?

喜欢而已 提交于 2019-12-24 03:43:20
问题 I've successfully built my code on Azure Dev Ops by modifying the pipeline YAML file, but I have been unable to successfully deploy the artifact to my IIS Server. The only way to create a deployment is by using its unpleasant UI. I've read that by turning on a multi-pipelines preview feature, you can view and edit the YAML file. Unfortunately, it doesn't work. You can edit the build scripts, but not the release ones. I tried to add deployment tasks in the main pipeline YAML file, but it

Deploy from Visual Studio Team Services to on-prem IIS - VPN connect

假装没事ソ 提交于 2019-12-24 00:38:21
问题 Recently we start using Visual Studio Team Services (VSTS) online, as a source control and DevOps continuous integration. and we started to make builds. (VisualStudio.com) We need the remote build to be able to deploy packages (IIS sites) to our on-premises servers (internal network servers like UAT , QA servers). I'm not sure how to connect the VSTS to our network, are there a way to setup a VPN or something like that. I couldn't found in setting or documentation. 回答1: The list of machines

VSTest-Task not running .NET Core 2.1 xUnit-Tests from Test-plan

核能气质少年 提交于 2019-12-23 19:01:39
问题 I'm trying to create a release pipeline in VSTS that runs my xUnit-tests as specified in a Test Plan . Long story short: I can't get it to work. What I'm using: Azure DevOps (formerly VSTS) Visual Studio Test task (v2.*) Test project targeting .NET Core 2.1 xunit 2.4 with xunit.runner.visualstudio 2.4 In Azure DevOps I defined a Test Plan that contains a Test Suite which contains a Test that has an Associated Automation which points to my xUnit test. I had to use the REST API to link the test

How to override the keys in windows services .exe.config file through VSTS release definition

吃可爱长大的小学妹 提交于 2019-12-23 17:49:32
问题 I am working on VSTS release task for deploying the Windows Services Project. Unfortunately, we are not creating any Build Definition for creating drop folder. But, my client will provide drop folder for this project, what I need is “I want to override the keys of an existing .exe.config file” at release level. For creating the Windows Services Deploy task,I followed this Windows Services Extension For example my drop folder looks like below: Many thanks for this reference article and It's a

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

Passing VSTS Release Multi-Configuration Phase two variables, but only one multiplier

我的未来我决定 提交于 2019-12-22 08:42:41
问题 I have a VSTS Release Definition that is passed two variables, the contents of which I do not control. They contain a comma separated string of Names and a comma separated string of IDs which correspond to the Names by index. I want to use an agent phase configured with the parallelism option set to multi-configuration and the multiplier field set to the string of IDs, so the phase is run once for each ID. I also want to use the name that corresponds to the ID in that phase, but I'm not sure

CI/CD Deployment Conditions Not Triggering

断了今生、忘了曾经 提交于 2019-12-22 00:21:56
问题 I've been fighting with this for over a day now. I have a simple requirement inside of a VSTS CI/CD pipeline that I'm trying to build that any branch following the pattern release/* or hotfix/* should trigger a deployment to my QA environment. Here is my branch based configuration: This configuration does not trigger the deployment as expected. As you can see in the screenshot below the release ran but did not trigger against any of my environments. (QA is the second grey square from the

Is it possible to link a work item to a release?

你说的曾经没有我的故事 提交于 2019-12-21 22:10:01
问题 We would like to link a TFS work item to a Release so we can easily, with one click from the Release, open a TFS item that contains more info about this release. Info like Release Notes etc. Is it possible? A release has these variables that can be set when the release is created but they won't hold a (clickable link). 回答1: We cannot link work items for an existing release for now, there's already a user voice submitted here to suggest the feature, you can go and vote it up or submit a new

Schedule a Azure devops release in multiple timing by passing different VariableGroup

倖福魔咒の 提交于 2019-12-20 06:43:44
问题 I am able to schedule a release in multiple timing by using below script $timinglist=@(1:30,2:30,3:30) $PATtoken= 'PAT' Write-Host "Initialize Autnetication COntext" -ForegroundColor DarkBlue $token = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(":$($PATtoken)")) $header=@{authorization= "Basic $token" } $defurl = "https://vsrm.dev.azure.com/Organization/Project/_apis/release/definitions/13?api-version=5.1" $definition = Invoke-RestMethod -Uri $defurl -Method Get

How to deploy a static website to Azure from Visual Studio Team Services

梦想的初衷 提交于 2019-12-19 09:50:02
问题 I have an existing website that I would like to deploy on Azure , using Visual Studio Team Services . The website is made up of static files, there's no ASP.NET or anything else involved. Within Visual Studio Team Services, I created a build which executes npm install and a gulp build. This results in a dist folder containing all the files for the website. In Azure, everything is set up correctly (subscription, web app,...). However, I'm unsure on how to push my code to Azure. Exploring the