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

Parameter Default Values are not used if they're value type defaults #236

Closed thomhurst closed 1 year ago

thomhurst commented 1 year ago

I've tried declaring a BooleanParameter with a default value of false, but this doesn't serialise into the pipeline.

I then get an error when running the pipeline saying I must set a parameter value (since it has no default)

I suspect the same would be if you tried an integer with a value of 0.

premun commented 1 year ago

Thanks for reporting! This is a simple fix but I think I will have to generate and actually use more YAMLs in a PR pipeline to catch problems like these.

premun commented 1 year ago

This is fixed in 1.4.4