inizio modifica x pubblicazione online...

This commit is contained in:
Samuele E. Locatelli
2019-10-17 11:00:10 +02:00
parent 8ec11974c9
commit f31202e77e
3 changed files with 71 additions and 27 deletions
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>OVH</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://www.admodelling.org</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>True</ExcludeApp_Data>
<MSDeployServiceURL>https://wprod01.steamware.net:8172/MsDeploy.axd</MSDeployServiceURL>
<DeployIisAppPath>admodelling.org</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>Administrator</UserName>
<_SavePWD>True</_SavePWD>
<PublishDatabaseSettings>
<Objects xmlns="">
<ObjectGroup Name="SteamWare.Properties.Settings.DS_AuthConnectionString" Order="2" Enabled="False">
<Destination Path="" Name="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL2016DEV;Initial Catalog=Admodelling;Persist Security Info=True;User ID=sa;Password=keyhammer16" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\SteamWare.Properties.Settings.DS_AuthConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL2016DEV;Initial Catalog=Admodelling;Persist Security Info=True;User ID=sa;Password=keyhammer16;" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
<ObjectGroup Name="Data.Properties.Settings.AdmodellingConnectionString" Order="3" Enabled="False">
<Destination Path="" Name="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL2016DEV;Initial Catalog=Admodelling;Persist Security Info=True;User ID=sa;Password=keyhammer16" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\Data.Properties.Settings.AdmodellingConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL2016DEV;Initial Catalog=Admodelling;Persist Security Info=True;User ID=sa;Password=keyhammer16" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
</Objects>
</PublishDatabaseSettings>
<PrecompileBeforePublish>True</PrecompileBeforePublish>
<EnableUpdateable>True</EnableUpdateable>
<DebugSymbols>False</DebugSymbols>
<WDPMergeOption>DonotMerge</WDPMergeOption>
</PropertyGroup>
<ItemGroup>
<MSDeployParameterValue Include="SteamWare.Properties.Settings.DS_AuthConnectionString-Web.config Connection String">
<UpdateDestWebConfig>False</UpdateDestWebConfig>
</MSDeployParameterValue>
<MSDeployParameterValue Include="Data.Properties.Settings.AdmodellingConnectionString-Web.config Connection String">
<UpdateDestWebConfig>False</UpdateDestWebConfig>
</MSDeployParameterValue>
</ItemGroup>
</Project>
+1
View File
@@ -241,6 +241,7 @@
<Content Include="example-app.config" />
<None Include="Properties\PublishProfiles\IIS01.pubxml" />
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
<None Include="Properties\PublishProfiles\OVH-prod.pubxml" />
<None Include="Scripts\jquery-3.4.1.intellisense.js" />
<Content Include="Scripts\jquery-3.4.1.js" />
<Content Include="Scripts\jquery-3.4.1.min.js" />
Vendored
+11 -27
View File
@@ -75,51 +75,35 @@ pipeline {
bat "e:\\nuget.exe restore ${WORKSPACE}\\INTERFACE\\WebLCP.sln"
}
script {
/* DEPLOY condizionale: master (Ufficio Seriate) / demo_ovh (Demo Online) */
/* DEPLOY condizionale: develop (Ufficio Seriate) / master (Sito Online) */
if (env.BRANCH_NAME == "master") {
parallel (
SITE_IIS02: {
if(env.enableIIS02 == "Y")
{
sleep 1
sleep 2
// SITE
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ INTERFACE\\WebLCP\\WebLCP.csproj"
sleep 3
}
},
// SITE_IIS01: {
// if(env.enableIIS01 == "Y")
// {
// sleep 3
// // SITE
// bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ INTERFACE\\WebLCP\\WebLCP.csproj"
// sleep 1
// }
// },
failFast: false)
}
else if (env.BRANCH_NAME == "develop") {
parallel (
// SITE_IIS02: {
// if(env.enableIIS02 == "Y")
// {
// sleep 1
// // SITE
// bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ INTERFACE\\WebLCP\\WebLCP.csproj"
// sleep 3
// }
// },
SITE_IIS01: {
if(env.enableIIS01 == "Y")
{
sleep 3
sleep 0
// SITE
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=Release /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ INTERFACE\\WebLCP\\WebLCP.csproj"
sleep 1
}
},
failFast: false)
}
else if (env.BRANCH_NAME == "OVH") {
parallel (
PUB_PROD: {
sleep 0
bat "\"${tool 'MSBuild-15.0'}\" \"/p:AspnetMergePath=C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v10.0A\\bin\\NETFX 4.6.2 Tools\" /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=OVH-prod.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=OVH /p:username=WPROD01\\Steamware /p:Password=viaD@nte16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ INTERFACE\\WebLCP\\WebLCP.csproj"
},
failFast: false)
}
else
{
echo 'Questo BRANCH non necessita di deploy...'