10 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@...
Erik Philips's user avatar
6 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....
Andrew's user avatar
  • 161
6 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 ...
Tomasz Chudzik's user avatar
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 ...
Ned Flanders's 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 ...
DrGriff's user avatar
  • 456
5 votes

Jenkins vs Azure DevOps Pipelines

I would love to get some clarity too maybe from a more authoritative source than myself (I'm sure I'm guilty of FUD too). I've been looking to deploy to Azure using Kubernetes. I am similarly ...
Mark McLaren's user avatar
5 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 ...
AHaleIII's user avatar
  • 179
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".
030's user avatar
  • 13.1k
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 ...
030's user avatar
  • 13.1k
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.
qbik's user avatar
  • 161
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 ...
AHaleIII's user avatar
  • 179
3 votes

Single Build with Multiple Artifacts

Can I suggest building and publishing the artefacts in separate jobs? That would mean that each job is simpler (no need to specify an artefact subfolder), and might give you some speed-up by running ...
Vince Bowdren's user avatar
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 ...
Rodrigo's user avatar
  • 151
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 ...
Eriawan Kusumawardhono's 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 ...
Jeremy Caney's user avatar
3 votes

Azure Devops Pipeline variables in Powershell

Pipeline Variables are handed to PowerShell as environment variables, which means that $ip exists only with the script while you want to use $env:ip to pick the environment variable value. Note Secret ...
Giulio Vian's user avatar
3 votes

Build a app.exe file. Where to release it?

A good approach for distributing .Net Core console applications is to make them a dotnet tool and publish them to a Nuget feed. It should be as simple as adding some config to the csproj and run ...
logicaldiagram's user avatar
3 votes
Accepted

Deployment group not showing in Azure DevOps release pipeline

We figured this out. The deployment group was created by someone else and I had only been granted Reader and not User permissions for the group.
Chris's user avatar
  • 161
2 votes

Jenkins vs Azure DevOps Pipelines

Yes, because Azure Pipelines can do what Jenkins does. However, you don't have to throw the baby out with the bathwater. Microsoft continues to position their platforms such that integrations can ...
Sumo's user avatar
  • 235
2 votes

Jenkins vs Azure DevOps Pipelines

In answer to part 2 (maybe), it does seem like they're pitching it as an alternative to Jenkins, although there's plenty of documentation suggesting that it can all be used together (and here). When ...
phedro's user avatar
  • 21
2 votes
Accepted

Azure DevOps Pipeline Conditional Flow with Manual Intervention

@Shayki's answer was a large portion of what I was looking for (thanks!), but I was eventually able to figure out a solution that met all of my requirements. It involves a less than ideal use of the ...
AHaleIII's user avatar
  • 179
2 votes

How to setup Azure DevOps Pipelines and Releases with multiple apps

I use separate pipeline for each app you could use powershell task to restart IIS, but I dont think there is a way to do this without shutting down the website. You can also reconfigure website, so ...
4c74356b41's user avatar
2 votes
Accepted

Storing Code Signing Certificate

From what I can see you have done everything correctly, you have stored both the certificate material (i.e. the PFX) and the password for the PFX in a secure location that presumably no one else can ...
Richard Slater's user avatar
2 votes

Azure Devops, multiple on-prem environments, variables per environment

You can create a Release Pipeline with a stage for every environment; each stage has a different variable group, defining that environment's settings. On each stage you can copy files, etc. and run ...
Ned Flanders's user avatar
2 votes

Azure DevOps - Conditionally Build and Deploy

You can create build pipeline triggers to trigger your builds based on branch along with path triggers. In your release pipeline, you can set triggers and filters to decide which artifacts to be ...
Anthony Klotz's user avatar
2 votes
Accepted

Publish pipeline artifact to Slack

The stock Azure Pipelines app for Slack does not support that workflow of uploading artifacts to Slack. You could use this marketplace task and upload your release notes artifact with it. Bonus ...
Eric Smith's user avatar
2 votes

'find' command suddenly not working in windows hosted agents

Find is a command in Windows that does very different thing to find in a posix shell. And that would be the error you would get if you ran the Windows find (usually Windows find is located at C:\...
hvindin's user avatar
  • 1,734
2 votes

How to make .DACPAC from Azure Sql Server using Azure DevOps release pipeline?

Ok, after researching some more time, I've found this gem https://markheath.net/post/backup-restore-sql-database-azure-cli. In this article author uses az sql db export and az sql db import to save ...
Sergey Salin's user avatar
2 votes
Accepted

How to properly setup a multi-environment release pipeline in Azure YAML pipelines?

Assuming that deploy to DEV and QA steps look a lot like your deploy to production-staging environments, put the code that does that work into a yaml template and take advantage of parameters to allow ...
Mark Iannucci's user avatar
2 votes

How to buy more Azure DevOps pipelines build minutes?

You can set up billing in your Organization settings in DevOps https://dev.azure.com/~your organization name~/_settings/billing
Crowcoder's user avatar
  • 131

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