Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azp: unrecognized parameters are not reported #236

Open
bryanbcook opened this issue Oct 14, 2023 · 2 comments
Open

azp: unrecognized parameters are not reported #236

bryanbcook opened this issue Oct 14, 2023 · 2 comments

Comments

@bryanbcook
Copy link

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.

@ChristopherHX
Copy link
Owner

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)

@bryanbcook
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants