azure-pipelines-release-pipeline

Deploying app to Azure Virtual Machine scale set

核能气质少年 提交于 2021-02-08 05:05:25
问题 I have a question about deploying app to azure virtual scale set. I use an instruction from this blog. My problem is with release an image to azure and more specifically with Deployment Inputs in task "Build immutable image". Screen with my Deployment Inputs section And when I try to Release it I have an error: [error]Error happened while `initializing task: Not found any file matching pattern: d:\a\r1\a\Proj\ under root folder: d:\a\r1\a..` How should the correct paths look? Setting as in

Deploying app to Azure Virtual Machine scale set

穿精又带淫゛_ 提交于 2021-02-08 05:04:51
问题 I have a question about deploying app to azure virtual scale set. I use an instruction from this blog. My problem is with release an image to azure and more specifically with Deployment Inputs in task "Build immutable image". Screen with my Deployment Inputs section And when I try to Release it I have an error: [error]Error happened while `initializing task: Not found any file matching pattern: d:\a\r1\a\Proj\ under root folder: d:\a\r1\a..` How should the correct paths look? Setting as in

Automatic redeploy after fail

落花浮王杯 提交于 2021-02-08 03:45:28
问题 I'm using VSTS to automatically release my app after each commit to the specific branch. The tasks are basically: Recreate database If 1st ok -> Deploy API and Web If 2nd ok -> Deploy and restart some windows services During the second step sometimes it happens that deploy fails because of some connection or IIS issue. This is not really a big deal I do not want to be very specific about the error nature here. All I have to do when it happens is to go to the VSTS and click Redeploy on failed

Adding additional files to VSTS Release to azure web app

為{幸葍}努か 提交于 2021-02-07 20:24:52
问题 I have a release in VSTS to deploy my webapp to the azure app service. For this I use a Azure App Service deploy step. After the normal deploy of the webapp I want to add an additional zip artifact from another build result. I want to copy only those file to a specific path of the web application on azure. How can I do that? 回答1: If the zip file is the web deploy package, you can refer to Joy’s answer. (Need to check Application option) Otherwise, the simple way is using Kudu REST API (remain

Azure Devops logging commands in release pipeline

此生再无相见时 提交于 2021-02-05 08:34:21
问题 I am trying to customize the output of my pipeline release through setting some env variables into a task. I found the following link: https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=powershell which however does not seem to work. What I am doing is simply to create a pipeline with a single task (either bash or PS), and there declaring the commands specified in the link through the inline version of the task. Has anyone already

How to provide docker image tag dynamically to docker-compose.yml in Azure Release Pipeline Task?

冷暖自知 提交于 2021-01-29 19:30:11
问题 I have docker-compose.yml file present in the repository. I have added the image attribute in one of the services to pull the docker images. I have not hard coded the docker image and docker tag and planning to pass these arguments at the runtime to docker-compose.yml file. How to pass the runtime arguments like IMAGE_TAG=82 , IMAGE_NAME=app1 to the docker-compose.yml file? 回答1: You can use variables in the docker-compose file for the image & tag: version: '3' services: redis-server: image: $

Can I programmatically set an overridable default value for a variable in an Azure DevOps Release Pipeline?

落爺英雄遲暮 提交于 2021-01-29 16:06:05
问题 I have a variable called some_var in an Azure DevOps release pipeline. I'd like to set the default at release time. But I want to set it programmatically based on the contents of a file in the artifact drop folder. But I still want the user to be able to overwrite the dynamically set value at the time they're creating the release. So the end-user behavior would be that they (1) navigate to the Release and (2) click "Create New". The dialog comes up with the some_var variable already set to a

Adding additional files to Azure Build Pipeline

元气小坏坏 提交于 2021-01-29 15:05:02
问题 I have an Azure DevOps Pipeline which pulls from a repository and builds a Visual Studio web project. This is then published to an App Service. I have several sensitive configuration files which are not included in the repository (or the VS project) and are stored as 'Secure Files' within the Azure DevOps system. I need to include these files in the 'Config/Secure' folder for the package that gets published (within the zip file). I can download them, but no matter what I try, I cannot get

Azure pipeline build Stage verification

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 14:52:59
问题 As a centralized azure devops team in my org , we want to ensure that code of certain technology type built using standard extended yaml template. Thanks to the "Extend" feature and recently introduced template check at environment level , we are now able to verify developers yamls if they are extending our standard yamls or not. But this check only runs after build stage. Can we somehow evaluate this before build stage? 回答1: Can we somehow evaluate this before build stage? I'm afraid, no, it

Is there a way to find the workitems for a release in Azure DevOps Api 5.1?

守給你的承諾、 提交于 2021-01-29 14:29:27
问题 I can find a release in Azure DevOps Api 5.1 by a request to https://vsrm.dev.azure.com/mycompany/myproject/_apis/release/releases/myreleaseid?api-version=5.1 How can I get the workitems of that release as shown on the devops portal under Deployment - Stages - Workitems? My naive approach just using https://vsrm.dev.azure.com/mycompany/myproject/_apis/release/releases/myreleaseid/workitems?api-version=5.1 resulted in a 404. There is a stakeholder in the workitem and I want to send him a