我要将.NET Web应用程序部署到Windows服务器IIS实例中,因此成功生成了安装软件包。
在部署过程中,我收到以下错误消息。
构建成功。 0警告 0个错误
经过的时间00:00:11.26 [示例] $ cmd / c调用 C:\ Windows \ TEMP \ jenkins7588881486465872967.bat
C:\ Program Files(x86)\ Jenkins \ workspace \ sample>“ C:\ Program Files \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe“ -verb:sync -source:package =“ C:\ Program Files(x86)\ Jenkins \ workspace \ sample \ Project \ bin \ Release_PublishedWebsites \ Project_Package \ Project.zip” -dest:auto,computerName ='http://project.com:3389/msdeploy.axd?site=projectname',UserName ='username',Password ='password',AuthType ='Basic', includeAcls ='假' -setParam:name ='IIS Web应用程序名称',value ='默认网站/测试'-disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension信息:使用ID'2bfa9a55-5a31-4e91-92f4-0fee84c72096'连接到 远程服务器。错误:无法完成对远程代理的请求 网址“ http://project.com:3389/msdeploy.axd?site=projectname”。错误: 该操作已超时错误计数:1。
C:\ Program Files(x86)\ Jenkins \ workspace \ sample>退出-1构建步骤 “执行Windows批处理命令”将生成标记为失败完成: 失败
以下是我在jenkins配置中配置的命令
"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="C:\Program Files (x86)\Jenkins\workspace\sample\Project\bin\Release\_PublishedWebsites\Project_Package\Project.zip" -dest:auto,computerName='http://project.com:3389/msdeploy.axd?site=projectname',UserName='username',Password='password',AuthType='Basic',includeAcls='false' -setParam:name='IIS Web Application Name',value='Default Web Site/test' -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension