【问题标题】:Azure WebApps Deploy with Jenkins使用 Jenkins 部署 Azure WebApps
【发布时间】:2017-08-30 14:13:01
【问题描述】:

我正在尝试使用 Jenkins 将 .Net 应用程序发布到 Azure WebApps。在this guide 之后,我遇到了以下错误:

P:\Scripts\Azure\PublishProfiles\my.PublishSettings(1,1): error MSB4068: The element <publishData> is unrecognized, or not supported in this context. [c:\jenkins-slave\workspace\msbuildtest\my\my.csproj]

我从 Azure 下载了my.PublishSettings,它看起来像

<publishData>
    <publishProfile
            profileName="my - Web Deploy"
            publishMethod="MSDeploy"
            publishUrl="my.scm.azurewebsites.net:443"
            msdeploySite="my"
            userName="$my"
            userPWD="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
            destinationAppUrl="http://my.azurewebsites.net"
            SQLServerDBConnectionString=""
            mySQLDBConnectionString=""
            hostingProviderForumLink=""
            controlPanelLink="http://windows.azure.com"
            webSystem="WebSites">
        <databases />
    </publishProfile>
    <publishProfile
            profileName="my - FTP"
            publishMethod="FTP"
            publishUrl="ftp://waws-prod-am2-045.ftp.azurewebsites.windows.net/site/wwwroot"
            ftpPassiveMode="True"
            userName="my\$my"
            userPWD="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
            destinationAppUrl="http://my.azurewebsites.net"
            SQLServerDBConnectionString=""
            mySQLDBConnectionString=""
            hostingProviderForumLink=""
            controlPanelLink="http://windows.azure.com"
            webSystem="WebSites">
        <databases />
    </publishProfile>
</publishData>

我做错了什么,我该如何解决?

【问题讨论】:

  • 能否提供msbuild命令参数
  • @Karthikeyan (Un) 幸运的是,我们已经从 Azure 切换到 AWS,因为这个(以及我们没有得到任何答案的其他问题)。

标签: azure jenkins webdeploy microsoft-web-deploy azure-webapps


【解决方案1】:

抱歉,既然您已经迁移到 AWS,这可能对您没有帮助,但是有一个用于部署到 Azure Web 应用程序的新插件:https://aka.ms/azapp-service

【讨论】:

  • 虽然此链接可能会回答问题,但最好在此处包含答案的基本部分并提供链接以供参考。如果链接页面发生更改,仅链接的答案可能会失效。
猜你喜欢
  • 1970-01-01
  • 2022-01-13
  • 2021-05-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多