azure-devops

Retrieve the list of Tasks for Build Definition using .NET client libraries for VSTS/TFS

懵懂的女人 提交于 2021-01-28 06:11:08
问题 I'm using the .NET client libraries for VSTS/TFS (https://docs.microsoft.com/en-us/vsts/integrate/concepts/dotnet-client-libraries?view=vsts) to retrieve a list of tasks for all Build Definitions for all Team Projects. I'm using the v16.139.0-preview version of the NuGet package Microsoft.TeamFoundation.ExtendedClient (I need to because I need to retrieve Release Definition workflow as well for which you need Microsoft.VisualStudio.Services.Release.Client which has a dependency requirement

Switch existing organizations to use the new domain name URL

大城市里の小女人 提交于 2021-01-28 05:47:26
问题 If we switch our organization to the new dev.azure.com/myorg URL, would the old myorg.visualstudio.com URL still work? 回答1: Yes - I just verified with mine. I've been using the dev.azure.com/myorg format and the old myorg.visualstudio.com still works for me. 来源: https://stackoverflow.com/questions/58122693/switch-existing-organizations-to-use-the-new-domain-name-url

How do I release from Azure DevOps to a server via FTP?

放肆的年华 提交于 2021-01-28 05:28:14
问题 I'm really new to ADO. I have a Git repro for an ASP.NET Core web site, and having set up a build, am trying to work out how to deploy the site to my hosting server via FTP. I looked at the MSDN docs, but what they show there bears very little resemblance to what I see in my browser... I tried the "IIS website and SQL database deployment" template, as that looked the most likely, but then got stuck at the next stage. I need to fill in some settings for the three tasks that it created, but it

How to use yaml template parameters in Azure DevOps Server 2019 on-prem?

倾然丶 夕夏残阳落幕 提交于 2021-01-28 05:20:56
问题 According to the official documentation at https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops-2019 the Azure DevOps Server 2019 on-prem supports everything. Yet, I cannot make it work with a simple yaml template with parameters. Here is my yaml template (named prepare-sonar-qube.yml): parameters: - name: projectKey type: string - name: projectName type: string default: ${{ parameters.projectKey }} - name: useDotCover type: boolean default: false steps:

Azure Pipeline Failing in dotnet build, need to upgrade to latest .net core version

白昼怎懂夜的黑 提交于 2021-01-28 05:14:13
问题 I'm having an issue with my deployment in my Azure Pipeline for my .Net Core API deployment. The build is failing because recently the API was upgraded from .Net Core 3.1 to .Net Core 5.0. How do I upgrade the version in the deployed API? The build is failing because of it. 2020-12-15T17:28:36.4659829Z Welcome to .NET Core 3.1! 2020-12-15T17:28:36.4663885Z --------------------- 2020-12-15T17:28:36.4664170Z SDK Version: 3.1.404 2020-12-15T17:28:36.4664326Z 2020-12-15T17:28:36.4664473Z

How to configure an Azure DevOps release to complete all its stages before starting a new one

╄→尐↘猪︶ㄣ 提交于 2021-01-28 05:08:24
问题 I am setting up an Azure DevOps release pipeline with three different stages. As shown in the following screenshot a new release has already started even though the preceding release is still running. Is there a way to configure a release to complete all its stages before the next in the queue is getting started? 回答1: For more readable, I will talk based on the pic you shared in the question. In fact, in the release which has multiple stages, the stages are independent of each other. As you

How do I set up different pipelines for each branch in Azure

半城伤御伤魂 提交于 2021-01-28 05:05:53
问题 I have a single project but with two "master" branches. master virt/master Each of them would have their own azure-pipeline.yml specific for their branch. The first pipeline in master has the trigger set up as trigger: batch: true branches: include: - refs/heads/master The second one is in the virt/master branch. trigger: batch: true branches: include: - refs/heads/virt/master Here's the repository that I am experimenting on https://dev.azure.com/trajano/experiments/_git/multi-branch master

CI with a SQL Always Encrypted column

心不动则不痛 提交于 2021-01-28 05:00:21
问题 We are trying to add Always encrypted in one of our application and we would like to make it work with our CI flow. We are using DACPAC deploy with Azure Devops. Everything worked until now but we are facing a challenge with always encrypted... Each SQL environment needs to have a different key that is in Azure Key Vault. The way we found to automate this is by using a SSDT Variables (ref) CREATE COLUMN MASTER KEY [ResponseKey] WITH ( KEY_STORE_PROVIDER_NAME = N'AZURE_KEY_VAULT', KEY_PATH = N

Get all work items from a project azure devops REST API

自作多情 提交于 2021-01-28 04:34:59
问题 I'm using Azure devops API to create a notification bot with AWS Lambda node.js. At this moment i need to check if each task work item is attached to a parent user story. The first step will be to get all the task work items on "given" project, for this step i was reading azure devops api documentation and found this: Work Items - List The API is asking for the id of the workitem that i want to get, but what if i need all the workitems from "given" project? GET https://dev.azure.com/

How to split this duplicated Azure DevOps steps into a reusable template

浪尽此生 提交于 2021-01-28 04:33:02
问题 I have the following Azure DevOps template, which is currently hardcoded to some specific files. I'm hoping to refactor it into a simpler template using loops so I don't need to duplicate (and hardcode) specific files. [ pseduo code for brevity ] #tests.yml steps: # pre-test steps. This is done once. - script: install tool1 - script: install tool2 - script: setup path stuff. # Tests - script: test project1 | display codecoverage to console-out - script: test project 2 | display codecoverage