nuke-build / nuke

🏗 The AKEless Build System for C#/.NET
https://nuke.build
MIT License
3.07k stars 367 forks source link

- added AzurePipelinesPool as a abstraction for vmImage and on prem p… #1398

Open mateuszradny opened 4 months ago

mateuszradny commented 4 months ago

I want to use nuke.build with our on-prem agents. Unfortunately, I didn't find a solution to pass a pool name to be considered in the final yml file.

I saw that other people also had a similar problem: #1173, #749.

My proposition is to create an additional abstraction, AzurePipelinesPool, which can be either a Microsoft-hosted agent (vmImage) or a self-hosted agent, as that is essentially what a pool is in Azure Pipelines.

Here is a proposal for the changes, and I am open to suggestions. I also removed images parameters from AzurePipelinesAttribute because if you really need to run your targets on multiple vmImages, it's probably better to configure multiple AzurePipelinesAttribute, am I right?

I confirm that the pull-request: