azure-devops

Azure devops - Preparing self hosted test agents

你说的曾经没有我的故事 提交于 2021-02-08 08:45:20
问题 What is the best way to create a list of Self-hosted agents in Azure Devops (In order to run Automated tests with Smartbear TestExecute) without doing all the steps manually ? Let's assume that there will be 40-50 PCs running Windows 10 which have to be made an agent and linked with the Azure pipelines. I'm looking for a way to avoid doing these steps 50 times: Create these agents manually by following all the steps here https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2

Replacing database connection strings in the Docker image

六眼飞鱼酱① 提交于 2021-02-08 08:18:22
问题 I'm having hard times with the application's release process. The app is being developed in .NET Core and uses 'appsettings.json' that holds connection string to a database. The app should be deployed to Kubernetes cluster in Azure. We have a build and release processes in Azure DevOps so the process is automated, although the problem belongs to a necessity to deploy the same to multiple environments (DEV/QA/UAT) and every env is using its own database. When we build Docker image, the

Identifying work items which have been released via VSTS API

て烟熏妆下的殇ゞ 提交于 2021-02-08 07:52:40
问题 Trying to determine which VSTS Work Items have been released to a given Environment (production). Ideally looking for a Service Hook to tell me when work items are deployed so we can keep the rest of the company updated on when items are deployed. Cannot find this available in the VSTS API. In the VSTS UI under the Release Summary tab it shows linked Work Items. However linked Work Items don't appear to be available via the API. VSTS API docs for Get Release In the VSTS UI under each Work

Azure DevOps integration in Sentry: Associate commits

北城以北 提交于 2021-02-08 07:25:05
问题 Did someone manage to integrate Azure DevOps in Sentry (sentry.io)? I stuck on "Associate commits with a Release" (see: https://docs.sentry.io/workflow/releases/?platform=browser#associate-commits-with-a-release) I can not figure out a way how I can tell Sentry (by API) which commit ids are associated with a current release/deploy. How can I add a task to the pipeline which will post the commit ids to Sentry API? Or is there some other way to do it? 回答1: In azure devops, the Powershell task

Azure DevOps integration in Sentry: Associate commits

女生的网名这么多〃 提交于 2021-02-08 07:23:43
问题 Did someone manage to integrate Azure DevOps in Sentry (sentry.io)? I stuck on "Associate commits with a Release" (see: https://docs.sentry.io/workflow/releases/?platform=browser#associate-commits-with-a-release) I can not figure out a way how I can tell Sentry (by API) which commit ids are associated with a current release/deploy. How can I add a task to the pipeline which will post the commit ids to Sentry API? Or is there some other way to do it? 回答1: In azure devops, the Powershell task

Setting a date and revision number as variables in tfs 2017

纵然是瞬间 提交于 2021-02-08 06:43:28
问题 I want to create a variable named NugetVersionNumber with the value a date format of $(Date:yyyy.MM.dd)$(Rev:.rr) with the revision at the end. e.g. 2018.8.23.1 How do I set a process variable to construct this format without changing the build.buildnumber variable? 回答1: It's not able to directly use $(Date:yyyy.MM.dd)$(Rev:.rr) as a user-defined variables. (Date:yyyyMMdd) is a token of build number format not a general variable. The only way to do this is setting your build number with (Date

XUnit - InvalidOperationException : Solution root could not be located using application root

爱⌒轻易说出口 提交于 2021-02-08 06:20:07
问题 I have a Web-API .NET Core 2.2 project and I am trying to do integration tests on it. I have followed the guide from Microsoft. The tests pass when starting them from the test runner and from the command line, they should be configured correctly, I am able to call the controllers via the WebApplicationFactory - HTTP client. I have disabled shadow copy via xunit.runner.json So far so good. I am trying to use Azure DevOps to deploy my project and at the release step, I've added a test step that

Sysprep an Azure VM using PowerShell task in a pipeline

岁酱吖の 提交于 2021-02-08 05:50:50
问题 My (dotNET) application is built (using a Windows Hosted agent), from a build pipeline, and in the subsequent Release pipeline, I provision a 16GB-Win2016 VM (enabling RDP, HTTP, HTTPS, WinRM and SSH), into which I RDP manually (there is a Manual Intervention task here), and configure WinRM (following this article: https://docs.microsoft.com/en-us/azure/marketplace/cloud-partner-portal/virtual-machine/cpp-configure-winrm-after-vm-creation#configure-vm-to-enable-winrm). Everything is fine

How to authenticate to a private Github submodule in a VSTS automated build?

亡梦爱人 提交于 2021-02-08 05:39:35
问题 I have a repository hosted on VSTS. That repository has a private github repository as a submodule. I have checkout submodules enabled. ... Using the Hosted MacOS pool to run the build, it fails because it can't authenticate to github: 2018-06-26T23:06:55.8029470Z Cloning into '/Users/vsts/agent/2.134.2/work/1/s/repo'... 2018-06-26T23:06:56.2379010Z fatal: could not read Username for 'https://github.com': terminal prompts disabled 2018-06-26T23:06:56.2405350Z fatal: clone of 'https://github

Protect Azure Pipeline Yaml File from Being Edited

人走茶凉 提交于 2021-02-08 05:36:26
问题 Currently storing our pipeline YAML files in our git repo in Azure Devops - trying to find a way to restrict certain users from editting/accessing the YAML file or even possibly a folder that contains the YAML file. We want to implement additional security to prevent our developers from modifying our YAML files to potential exploit sensitive information or make changes that we don't approve (We have a PR policy in place, but would like additional security measures). Ideally - we could setup a