11 votes
Accepted

How to resolve merge conflicts in Azure DevOps current UI

Try this solution: Pull Request Merge Conflict Extension. It helps to resolve conflicts inside the pull request page.
user avatar
7 votes
Accepted

Single Build with Multiple Artifacts

Here is my YAML for multiple artifacts from a single build. pool: name: Hosted Windows 2019 with VS2019 demands: - msbuild - visualstudio - vstest - npm steps: - task: NuGetToolInstaller@...
user avatar
6 votes

How to keep original and new repositories in sync during a migration? (including the commit history)

Simply keep pushing stuff between the repositories. Git pushes are designed for exactly that. So, if origin is the old repository, and newis the new one, and you want to move new stuff in the master ...
user avatar
  • 4,696
6 votes
Accepted

Multi-language Monorepo

Monorepos have been getting a lot of attention in recent years since google popularized them. If you aren't on a similar scale as google it might not work out as well for you. I've been in a startup ...
user avatar
  • 1,728
6 votes

Rename build pipeline .yml files in Azure DevOps

As suggested by @030, I have prepared two screenshots that show how to connect the .yml files with the build pipeline. Rename the .yml file in the repository Open the pipeline editor Select the ...
user avatar
6 votes

Project pipeline not able to access NuGet package from Artifact Feed in different Project

Very few people were viewing this thread, so afterwards I posted a duplicate question on Stack Overflow, and now contains the answer. Below is a copy of it ... Finally, I found the problem. I wonder ...
user avatar
  • 316
5 votes
Accepted

Rename build pipeline .yml files in Azure DevOps

According to this Azure Q&A it should be possible to change the name of the yaml file by clicking on "Edit in the visual designer".
user avatar
  • 12.5k
5 votes

Rename build pipeline .yml files in Azure DevOps

This has been fixed in recent version of Azure DevOps. Currently you can easily rename or move the pipeline in the list of pipelines while clicking on 3 dots and select Rename/move and change your ...
user avatar
5 votes
Accepted

Given a blank slate, tool recommendations?

This question runs two risks: of being marked as "primarily opinion-based", and its answers might age poorly. However, I think it's useful to express an opinion, if only for posterity; if and when ...
user avatar
  • 3,048
5 votes

How to resolve merge conflicts in Azure DevOps current UI

I had this problem too, coming from github where you can usually resolve text file changes in browser. On your local repo, you want to get the latest then reverse-merge, so in your case // Precursor ...
user avatar
  • 151
4 votes
Accepted

How to setup artifact filters to differentiate for deployment

Azure DevOps supports artifact filters for each environment. Below is screenshot of how to enable the feature.
user avatar
4 votes
Accepted

Installing Ansible Controllers to build agents which best practice to use?

Infrastructure as code means that the infrastructure configuration is stored in a version control system (VCS). If changes will be applied, it is traceable who changed the code and when. Although it ...
user avatar
  • 12.5k
4 votes

Single Build with Multiple Artifacts

I managed to get Erik's approach working which is great. I then wondered if I could simplify it so instead of deleting the content how about put each artifact in a sub folder of the $(Build....
user avatar
  • 141
4 votes

How to resolve merge conflicts in Azure DevOps current UI

I am not sure this tab appears 100% of the time, you still have to merge some cases locally, but you can merge some PRs without any extensions in latest UI update.
user avatar
4 votes
Accepted

Azure DevOps service connection: lifetime of service principal

I will try to elaborate a lite about those topics. When secret expires and you got error, you have to refresh connection. Go to Edit dialog for connection and save without any changes. Described here:...
user avatar
4 votes

Using Azure Devops with Git Workflow

Most answers to these questions are going be subjective and influenced by your particular organization's workflows and culture. Little of this response if more than just my own opinion and experience ...
user avatar
  • 221
4 votes
Accepted

Is it possible to view all changes made on a Git feature branch in Azure Devops?

You're looking for the branch compare functionality. In the list of branches, click the overflow ellipses on your feature branch and select compare branches. Azure DevOps will diff your branch with ...
user avatar
4 votes
Accepted

How to skip reviewer for project administrator pull request?

As a workaround, you can add "bypass policies" for project admins. The documentation: Security groups - Git repository (object-level)
user avatar
4 votes

How to get information about resources in an Azure Pipelines run?

You can do: variables: templates.ref: $[ resources.repositories['templates'].ref ] See Repository Details docs.
user avatar
  • 161
3 votes

How to report Code Coverage metrics across git repositories?

If you use python and GitLab like I do, you can include a test coverage report in your CI/CD pipeline. You pip install coverage and then just run coverage in your pipeline. The following is an excerpt ...
user avatar
3 votes
Accepted

Azure Devops: Filter Test Projects in Nuget Build Pipeline

I noticed that the description for the filepath properties of the pack command is different than the descriptions in the test and publish commands: Pattern to search for csproj or nuspec files to ...
user avatar
  • 159
3 votes

Pushing code changes from Pipeline back to repo/branch, using Git!

Found the issue... The documentation states that the "contribute" permission needs to be added to "Project Collection Build Service Accounts". There is also an USER called ""Project Collection Build ...
user avatar
  • 141
3 votes

Reading two Repos in Azure Build pipeline

I also use the classic editor, and I have implemented this for our builds. My use case was that I have a set of common set of build/release scripts stored in their own repository, and I want the ...
user avatar
  • 159
3 votes

PowerShell command to automate Azure Linux VM

Apologies for not directly answering your question, but by the sounds of your question, you are trying to build an update management system to mitigate the threats of vulnerable operating system ...
user avatar
3 votes
Accepted

Azure DevOps Artifact.zip folder structure for .NET Core 3.0 application

I'm looking this fact: I have an ASP.NET Core 3.0 application for which I have a full CI/CD setup in Azure DevOps. The Application is hosted on a Ubuntu 18.04 server machine. Therefore I can ...
user avatar
3 votes

Trunk Based Development - release branch testing

There are different strategies and, depending on your specific problem domain, you need to decide what makes sense for you. For server side applications, especially micro services, you typically don'...
user avatar
3 votes

How to install aws cli on a self-hosted azure DevOps Windows agent?

The best way to have AWS CLI tooling installed to your custom agent is by installing from Visual Studio Marketplace. AWS CLI is part of AWS Tools for Azure DevOps Service and Azure DevOps Server (the ...
user avatar
3 votes
Accepted

Azure Pipelines: Exclude folders using Azure App Service Deploy

As @yang-shen-msft notes on Stack Overflow, there doesn't appear to be a way to honor the MSDeploySkipRules defined in the csproj file. Instead, files and folders can be skipped by defining the ...
user avatar
3 votes

How do fail a Packer pipeline upon powershell provisioner pester test failure?

After resolving some syntax issues, I found the true cause of failing to throw the error. In my prior usage I was doing this through Inspec provisioner, which handled the exit codes. If you are ...
user avatar
3 votes
Accepted

REST API: create project with powershell returns unspecified internal error

Your script works, just update the last content type to application/json: Invoke-RestMethod -Uri $adoTaskUri -ContentType "application/json" -Body $body -headers $adoHeader -Method POST ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible