runner.server
runner.server copied to clipboard
azp: unrecognized parameters are not reported
Consider the following:
# pipeline.yml
steps:
- template: steps.yml
parameters:
speltWrong: true
# stages.yml
parameters:
- name: spelledWrong
type: string
default: ''
steps:
- script: exit 0
Should report an error message: steps.yml (Line 2, Col: 1): Unexpected parameter 'speltWrong'
But no error messages are reported.
There is an error for me, not shure why it is not reported for you?
The names are not reported, but that information is not in this issue
System.Exception: Provided undeclared parameters at AzureDevops.ReadTemplate(Context context, String filenameAndRef, Dictionary`2 cparameters, String schemaName) at AzureDevops.ParseSteps(Context context, IList`1 steps, TemplateToken step) at Runner.Server.Azure.Devops.Job.Parse(Context context, TemplateToken source) at Runner.Server.Azure.Devops.Pipeline.Parse(Context context, TemplateToken source) at MyClass.ExpandCurrentPipeline(JSObject handle, String currentFileName)
I opened the PR before I created the bugs. There is an exception, it just doesn't report the name of the missing parameter.
This issue seems to be resolved, cleaning up the backlog