sharpliner / sharpliner

Use C# instead of YAML to define your Azure DevOps pipelines
https://www.nuget.org/packages/Sharpliner/
MIT License
285 stars 21 forks source link

Extends definition #283

Closed asos-neildownes closed 4 months ago

asos-neildownes commented 4 months ago

Hello,

Are there any plans to add template extension capabilities, using the extends definition?

Documented here -> https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/extends?view=azure-pipelines

Thanks

premun commented 4 months ago

Hey, Yeah, I've discovered this feature just recently and it should be possible to add. I need to read more to understand the full syntax.

Thanks for reporting the issue

premun commented 4 months ago

Looking into this now. Should be an easy add

premun commented 4 months ago

@asos-neildownes I added the support. You need to inherit from ExtendsPipelineDefinition in your code.

The change will be in the 1.5.8 version of the package in a couple of minutes.