Given a pipeline env variable $MYVAR, how would one write the pipeline script command to interpolate the env var within my pipeline YAML? Here is very basic example:
script:
- echo '{"myvar":"$MYVAR"}' > ~/file.json
Right now, the $MYVAR is not getting interpolated. have tried ${MYVAR} as well. Haven't found a lot of examples unfortunately.
Thanks.