试图从go模板引用环境变量,但我不认为这是可能的?在文档和示例中看不到任何内容我通过使用参数充分但从不是环境变量.我想要的是什么样的
<templates>
<pipeline name="TestEcho">
<stage name="Echo">
<jobs>
<job name="Echo">
<tasks>
<exec command="echo ${SOME_ENVIRONMENT_VARIABLE}">
</exec>
</tasks>
</job>
</jobs>
</stage>
</pipeline>
<templates>
Run Code Online (Sandbox Code Playgroud)
提前致谢!
蒂姆