runner.server icon indicating copy to clipboard operation
runner.server copied to clipboard

azp: unrecognized parameters are not reported

Open bryanbcook opened this issue 2 years ago • 2 comments

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.

bryanbcook avatar Oct 14 '23 18:10 bryanbcook

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)

ChristopherHX avatar Oct 14 '23 20:10 ChristopherHX

I opened the PR before I created the bugs. There is an exception, it just doesn't report the name of the missing parameter.

bryanbcook avatar Oct 16 '23 15:10 bryanbcook

This issue seems to be resolved, cleaning up the backlog

ChristopherHX avatar Aug 29 '24 20:08 ChristopherHX