我正在尝试使用Jenkins、Git和MSBuild设置一个小型持续集成服务器。
我已经阅读了很多不同的关于这个主题的教程,但是我仍然有很多问题!
我创建了一个Jenkins任务,它将从Git拉取更改,并使用MSBuild部署到另一台服务器。
构建操作调用MSBuild.exe并使用以下属性:
/p:VisualStudioVersion=12.0
/p:Configuration=Release
/p:Platform="Any CPU"
/p:DeployOnBuild=True
/p:DeployTarget=Test
/p:MsDeployServiceUrl=https://myserver:8172/MsDeploy.axd
/p:AllowUntrustedCertificate=True
/p:UserName=myusername
/p:Password=mypassword
它正在愉快地工作,但我想了解更多信息。例如:
- 我正在将凭据指定为属性。有没有更好的方法?请注意部署服务器是外部的(不在局域网内)。
- 我需要使用
/P:CreatePackageOnPublish=True
属性吗?如果是,为什么?