[ Resolved ] Azure DevOps Pipeline Variable Issues - DevDummy

Latest

Views | Thoughts | Concepts | Techniques

Tuesday, October 06, 2020

[ Resolved ] Azure DevOps Pipeline Variable Issues

Error Messages

There was an error while overriding 'app_name_pipeline_varibale' parameter because of 'SyntaxError: Unexpected token M in JSON at position 50', make sure it follows JavaScript Object Notation (JSON)


There was an error while overriding '' parameter because of 'TypeError: Cannot read property 'type' of undefined', make sure it follows JavaScript Object Notation (JSON)

Context

Pipeline variables in Release pipelines in Azure DevOps


Cause of the issues



Variable values can contain spaces & special characters which may break the variable injecting to the pipeline via variable placeholders.

These types of values can cause the above issue.


Resolution

  • Wrap the pipeline variable value place holders with double quotes ("") so that spaces & special characters will be escaped.
Variable Editor


Variable Text Box




-dataFactoryName "$(dataFactoryName)"

...

No comments:

Post a Comment