update jenkinsfile + publish profile..

This commit is contained in:
Samuele E. Locatelli
2017-09-28 16:41:34 +02:00
parent 85b0ac9f57
commit bc7c00221a
3 changed files with 31 additions and 20 deletions
Vendored
+13 -2
View File
@@ -87,14 +87,25 @@ pipeline {
steps {
script {
/* compilo installers in base al BRANCH del cliente... */
if (env.BRANCH_NAME == "cusbg") {
if (env.BRANCH_NAME == "PROD-OVH") {
/* CAMBIO numero versione in file sorgente!!! */
bat "e:\\fart.exe ${WORKSPACE}\\VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
bat "e:\\nuget.exe restore ${WORKSPACE}\\ScheMe-PIC.sln"
parallel (
PIC: {
sleep 0
bat "\"${tool 'MSBuild-14.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=CUSBG.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=CUSBG /p:username=WPROD01\\Steamware /p:Password=viaD@nte16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ ScheMe-PIC/ScheMe-PIC.csproj"
bat "\"${tool 'MSBuild-14.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=PROD-OVH.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=PROD-OVH /p:username=WPROD01\\Steamware /p:Password=viaD@nte16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ ScheMe-PIC/ScheMe-PIC.csproj"
},
failFast: false)
}
else if (env.BRANCH_NAME == "DEMO-OVH") {
/* CAMBIO numero versione in file sorgente!!! */
bat "e:\\fart.exe ${WORKSPACE}\\VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0"
bat "e:\\nuget.exe restore ${WORKSPACE}\\ScheMe-PIC.sln"
parallel (
PIC: {
sleep 0
bat "\"${tool 'MSBuild-14.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=DEMO-OVH.pubxml /p:VisualStudioVersion=14.0 /p:RunCodeAnalysis=false /p:Configuration=DEMO-OVH /p:username=WPROD01\\Steamware /p:Password=viaD@nte16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ ScheMe-PIC/ScheMe-PIC.csproj"
},
failFast: false)
}
@@ -6,13 +6,13 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>CUSBG</LastUsedBuildConfiguration>
<LastUsedBuildConfiguration>DEMO-OVH</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://scheme.steamware.net/PIC/CusBG</SiteUrlToLaunchAfterPublish>
<SiteUrlToLaunchAfterPublish>http://scheme.steamware.net/PIC/DEMO</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>True</ExcludeApp_Data>
<MSDeployServiceURL>https://wprod01.steamware.net:8172/MsDeploy.axd</MSDeployServiceURL>
<DeployIisAppPath>scheme.steamware.net/PIC/CusBG</DeployIisAppPath>
<DeployIisAppPath>scheme.steamware.net/PIC/DEMO</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
@@ -22,43 +22,43 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<PublishDatabaseSettings>
<Objects xmlns="">
<ObjectGroup Name="ScheMe_Data.Properties.Settings.ScheMeConnectionString" Order="1" Enabled="True">
<Destination Path="Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
<Destination Path="Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\ScheMe_Data.Properties.Settings.ScheMeConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
<ObjectGroup Name="ScheMe_Data.Properties.Settings.ScheMe_filesConnectionString" Order="2" Enabled="True">
<Destination Path="Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC_files;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
<Destination Path="Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC-TEST_files;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC_files;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC-TEST_files;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\ScheMe_Data.Properties.Settings.ScheMe_filesConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC_files;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC-TEST_files;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
<ObjectGroup Name="SteamWare.Properties.Settings.ScheMeConnectionString" Order="3" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\SteamWare.Properties.Settings.ScheMeConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
<ObjectGroup Name="SteamWare.Properties.Settings.DS_AuthConnectionString" Order="4" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\SteamWare.Properties.Settings.DS_AuthConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
</Objects>
@@ -71,10 +71,10 @@ by editing this MSBuild file. In order to learn more about this please visit htt
</PropertyGroup>
<ItemGroup>
<MSDeployParameterValue Include="ScheMe_Data.Properties.Settings.ScheMeConnectionString-Web.config Connection String">
<ParameterValue>Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer16</ParameterValue>
<ParameterValue>Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer16</ParameterValue>
</MSDeployParameterValue>
<MSDeployParameterValue Include="ScheMe_Data.Properties.Settings.ScheMe_filesConnectionString-Web.config Connection String">
<ParameterValue>Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC_files;Persist Security Info=True;User ID=sa;Password=keyhammer16</ParameterValue>
<ParameterValue>Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC-TEST_files;Persist Security Info=True;User ID=sa;Password=keyhammer16</ParameterValue>
</MSDeployParameterValue>
<MSDeployParameterValue Include="$(DeployParameterPrefix)SteamWare.Properties.Settings.DS_AuthConnectionString-Web.config Connection String">
<UpdateDestWebConfig>False</UpdateDestWebConfig>
@@ -6,13 +6,13 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>CUSBG</LastUsedBuildConfiguration>
<LastUsedBuildConfiguration>PROD-OVH</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>http://scheme.steamware.net/PIC/CusBG</SiteUrlToLaunchAfterPublish>
<SiteUrlToLaunchAfterPublish>http://scheme.steamware.net/PIC/PROD</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>True</ExcludeApp_Data>
<MSDeployServiceURL>https://wprod01.steamware.net:8172/MsDeploy.axd</MSDeployServiceURL>
<DeployIisAppPath>scheme.steamware.net/PIC/CusBG</DeployIisAppPath>
<DeployIisAppPath>scheme.steamware.net/PIC/PROD</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>