question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Template expressions cause syntax errors in YAML files

See original GitHub issue

When using the Azure Pipelines extension against a YAML file containing a template expression it reports errors when the file is valid.

steps:
 - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
    - powershell: echo "Hello"

Reports on the ${{ line: unexpected property, The first property must be a script.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:56
  • Comments:42 (13 by maintainers)

github_iconTop GitHub Comments

27reactions
vtbassmattcommented, May 15, 2020

We’re looking into when we can fund it. Now that template parameters and other template-using features have gathered some steam, the current behavior is becoming less and less defensible.

22reactions
s-bauercommented, Aug 1, 2019

Supporting this is really important in my eyes! Please put this in a high priority bucket!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Templates - Azure Pipelines | Microsoft Learn
Use template expressions to specify how values are dynamically resolved during pipeline initialization. Wrap your template expression inside ...
Read more >
How to Fix Errors in YAML (.YML) Config Files - Knowledgebase
We have a video tutorial on fixing YAML (.yml) configuration errors: ... uses the .yml file extension and is very sensitive to syntax...
Read more >
Avoid YAML formatting problems | Heartbeat Reference [8.5]
The configuration file uses YAML for its syntax. When you edit the file to modify configuration settings, there are a few things that...
Read more >
YAML Syntax - Ansible Documentation
There's another small quirk to YAML. All YAML files (regardless of their association with Ansible or not) can optionally begin with --- and...
Read more >
YAML File Syntax - ESM Tools documentation
These YAML files are read by the esm_parser and then converted into a Python ... and therefore, ESM-Tools will return an error every...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found