I have a pipeline on Azure DevOps that I'm trying to run programmatically/headless using the REST API:
So far so good, I can auth and start a run. I want to pass data to this pipeline which is possible using variables in the request body, as per the doc. My request body:
My pipeline YAML looks like this:
- task: Bash@3
echo "Hello world key: " $KEY
But an error is shown "HELLO_WORLD: command not found". How do you pass variables to a pipeline using the REST API? and how to overcome this error?