使用VSTS版本上的publishsettings文件进行Web发布

时间:2018-03-03 12:46:15

标签: azure-devops web-deployment

是否可以仅使用Web Publish方法配置release in VSTS?我想在共享主机中使用它,我没有权限使用PowerShell,但我已经有.publishsettings file that I manually use in Visual Studio

enter image description here

我陷入了设置部署组的步骤,因为在此共享主机中无法对其进行配置。 "A deployment group is a collection of machines with a VSTS agent on each of them. Each machine interacts with VSTS to coordinate deployment of your app."

有人试图配置这种部署吗?是否可以使用命令行或其他类型的配置来实现?

1 个答案:

答案 0 :(得分:2)

是的,您可以将明文密码存储在build / release的secret变量中,然后通过MSBuild参数(/p:Password={variable})指定密码。

之后,您可以在 Visual Studio Build 任务中指定公共配置文件(.pubxml文件而不是.publishsettings文件)(例如/p:SkipInvalidConfigurations=true /p:DeployOnBuild=true /p:PublishProfile="{profile name}"

相关问题