You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking to validate my Azure pipelines and have run into a blocker. I currently have a pipeline in production ( working and running ) with the following syntax
steps:
- bash: |
pipenv run pip install ansible-lint-junit --upgrade
pipenv run ansible-lint -c ../.config/ansible-lint.yml -p --nocolor > ansible-lint.txt
pipenv run ansible-lint-junit ansible-lint.txt -o AnsibleLintReport.xml
displayName: "Lint"
workingDirectory: ${{parameters.workdir}}
env:
${{ each pair in parameters.env }}:
${{ pair.key }}: ${{ pair.value }}
raise AzurePipelinesDataError(
check_jsonschema.transforms.azure_pipelines.AzurePipelinesDataError: azure-pipelines transform: found non-object data under an expression in an object, expression=${{ pair.key }}
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting this!
It looks to me like a bug in check-jsonschema, but I'm not sure exactly how to resolve it. I'll need to think more about this and study a bit.
By way of explanation / background, Azure Pipelines files don't pass under their schema (!). Since Microsoft provides a VSCode plugin using LSP, we know they're doing something to make the schema work - I had a productive exchange with one of the devs on the plugin code, and ended up copying their approach of rewriting the pipeline to "unnest" expressions.
It looks like they may have found and fixed this exact case a couple of months ago ( microsoft/azure-pipelines-language-server#130 , assuming I'm reading that PR right), which may be useful to read.
I've just released v0.18.4 which ought to fix this issue. Please let me know if the fix doesn't work for you or if you're seeing other problems with the Azure Pipelines handling!
Looking to validate my Azure pipelines and have run into a blocker. I currently have a pipeline in production ( working and running ) with the following syntax
when running with the pre-commit hook
it currently raises the error
The text was updated successfully, but these errors were encountered: