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@...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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".
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:\...
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 ...
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 ...
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
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
azure-pipelines × 132azure-devops × 105
azure × 39
yaml × 13
build-pipeline × 11
continuous-integration × 9
docker × 7
git × 6
continuous-deployment × 5
azure-artifacts × 5
release-management × 4
artifacts × 4
tfs × 4
powershell × 4
release × 4
deployment × 3
azure-kubernetes-service × 3
repository × 3
nuget × 3
windows × 2
cicd × 2
github × 2
databases × 2
environment-variables × 2
dotnet × 2