Azure WebApps Deploy with Jenkins

I ripped my hair out trying to publish a .Net app to Azure WebApps using Jenkins. While following this guide , I got stuck with the following error:

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]

      

I downloaded my.PublishSettings

from Azure and it looks like

<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>

      

What am I doing wrong and how do I fix it?

+3


source to share


1 answer


Sorry this may not help you migrate to AWS now, but there is a new plugin for deploying to Azure Web App: https://aka.ms/azapp-service .



0


source







All Articles