我有一个构建/测试服务器, 目前正在运行Jenkins进行持续集成, 同时也作为我的测试服务器,代码构建完成后会部署到这里(如果预算允许,我希望在以后的某个时间点解决这个问题并将它们分开)。
我有一个.NET Web解决方案(基本上只是Umbraco),保存在SVN中,现在Jenkins已经成功构建。我现在想使用MSDeploy将其部署到同一台服务器上。在构建完成后生成了软件包,但是部署失败并显示以下错误:
ERROR_DESTINATION_NOT_REACHABLE: Web deployment task failed. (Could not connect to the remote computer ("xxxxx.xxxxxxx.xxx.xxxx"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started
这是Jenkins使用的msbuild参数:
/P:Configuration=Release
/P:DeployOnBuild=True
/P:MSDeployPublishMethod=WMSVC
/P:DeployTarget=MSDeployPublish
/P:PublishProfile=GetSomePixels
/P:MsDeployServiceUrl=https://build.########
/P:AllowUntrustedCertificate=True
/P:CreatePackageOnPublish=True
/P:UserName=#######
/P:Password=########
我已经检查了服务器,Web管理服务正在运行,并且可以手动启动。
我还进入了IIS 8管理器(服务器2012),在“管理服务”下勾选了“允许远程连接”框。重启了IIS和WMSVC,但仍无法工作。
如果我在浏览器中打开https://myserver.co.uk:8172/MsDeploy.axd,它会解析(显示未受信任证书的警告),然后显示一个空白页面。
有没有人有任何想法?我认为可能与防火墙有关,尽管我已经为8172添加了Windows防火墙的异常,但我已将整个防火墙关闭以完全排除该因素,但仍然没有用。
已在服务器上运行此命令以检查它是否在正确的端口上侦听:
C:\Users\Administrator>netstat -a | findstr 8172 TCP 0.0.0.0:8172 GSP-BUILD:0 LISTENING TCP [::]:8172 GSP-BUILD:0 LISTENING