gpt4 book ai didi

azure-devops - 如何在 VSTS 中将多个参数传递给命令行

转载 作者:行者123 更新时间:2023-12-04 14:22:43 24 4
gpt4 key购买 nike

我在发布管道中的 VSTS 中使用命令行。不幸的是,不确定如何将多个参数(如“用户名”、“密码”和“站点网址”)传递给命令行

最佳答案

如果您使用命令行任务,则可以使用格式 $(variablename) 传递参数。

例如下面的例子:

enter image description here

对于在命令行任务中传递多个变量,格式仍然是 $(variablename) .

例如,命令行脚本可以是:

echo "Please enter your user name: $(username). Please enter to you password: $(password). Please enter the site url: $(siteurl)"

关于azure-devops - 如何在 VSTS 中将多个参数传递给命令行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52222865/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com