使用Shell Scripts任务从组中从组中检索Azure变量
我以这种方式通过Azure YAML管道实现了一个方案。
从shell脚本我可以从名为“ Hello”的Azure组中获取和打印变量 回声$(Hello)
现在我不想直接调用“ Hello”变量。我希望它动态打电话。
动态值在执行之前存储在输出变量中。
output = $(git show --name-omly | cut *** 1)
echo $output
# gives hello as the response
#I tried calling the azure variable like this.
echo $(echo $output)
echo $($output)
但是两者都不打印Azure变量值。
这里的所有投入都非常感谢。
I have a scenario implemented through azure yaml pipeline in such a way.
From shell script I am able to get and print the variable from the azure group named "hello" using
echo $(hello)
Now I dont want to call the "hello" variable directly. I wanted it to call dynamically.
the dynamic value is stored in a output variable before the execution.
output = $(git show --name-omly | cut *** 1)
echo $output
# gives hello as the response
#I tried calling the azure variable like this.
echo $(echo $output)
echo $($output)
but both is not printing the azure variable value.
any inputs here are much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论