Aggiunta publishprofile x install IIS01/02

This commit is contained in:
Samuele E. Locatelli
2019-02-11 17:09:29 +01:00
parent 8d403f12ad
commit 1cacf35555
7 changed files with 155 additions and 49 deletions
Vendored
+44 -44
View File
@@ -20,7 +20,7 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=201']) {
withEnv(['NEXT_BUILD_NUMBER=203']) {
// env.versionNumber = VersionNumber(versionNumberString : '2.3.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '2.3.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'WebSCR'
@@ -69,51 +69,51 @@ pipeline {
}
}
}
// stage('Deploy') {
// agent any
// steps {
// script {
// // CAMBIO numero versione + checkout NuGet in file sorgente!!!
// bat "e:\\fart.exe VersGen\\VersGen.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
// bat "e:\\nuget.exe restore ${WORKSPACE}\\WebSCR.sln"
// }
// script {
// /* DEPLOY condizionale: develop / master / demo_ovh */
// if (env.BRANCH_NAME == "master") {
// parallel (
// PUB_IIS01: {
// if(env.enableIIS01 == "Y")
// {
// 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=IIS02.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ PUB/PUB.csproj"
// }
// },
// PUB_IIS02: {
// if(env.enableIIS02 == "Y")
// {
// 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=IIS01.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ PUB/PUB.csproj"
// }
// },
// failFast: false)
// }
// 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/ PUB/PUB.csproj"
// },
// failFast: false)
// }
// else {
// echo 'Nothing to deploy...'
// }
// }
// }
// }
stage('Deploy') {
agent any
steps {
script {
// CAMBIO numero versione + checkout NuGet in file sorgente!!!
bat "e:\\fart.exe VersGen\\VersGen.cs 1.0.0.0 ${env.versionNumber} || EXIT /B 0"
bat "e:\\nuget.exe restore ${WORKSPACE}\\WebSCR.sln"
}
script {
/* DEPLOY condizionale: develop / master / demo_ovh */
if (env.BRANCH_NAME == "master") {
parallel (
PUB_IIS01: {
if(env.enableIIS01 == "Y")
{
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=IIS02.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ PUB/PUB.csproj"
}
},
PUB_IIS02: {
if(env.enableIIS02 == "Y")
{
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=IIS01.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ PUB/PUB.csproj"
}
},
failFast: false)
}
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/ PUB/PUB.csproj"
},
failFast: false)
}
else {
echo 'Nothing to deploy...'
}
}
}
}
// stage('Installers') {
// agent any
// steps {
+14
View File
@@ -16,6 +16,7 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
IIS01|Any CPU = IIS01|Any CPU
IIS02|Any CPU = IIS02|Any CPU
OVH|Any CPU = OVH|Any CPU
Release|Any CPU = Release|Any CPU
@@ -23,6 +24,8 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3753524E-FD74-4896-A4EB-EEE1406F94CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3753524E-FD74-4896-A4EB-EEE1406F94CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3753524E-FD74-4896-A4EB-EEE1406F94CF}.IIS01|Any CPU.ActiveCfg = Release|Any CPU
{3753524E-FD74-4896-A4EB-EEE1406F94CF}.IIS01|Any CPU.Build.0 = Release|Any CPU
{3753524E-FD74-4896-A4EB-EEE1406F94CF}.IIS02|Any CPU.ActiveCfg = Release|Any CPU
{3753524E-FD74-4896-A4EB-EEE1406F94CF}.IIS02|Any CPU.Build.0 = Release|Any CPU
{3753524E-FD74-4896-A4EB-EEE1406F94CF}.OVH|Any CPU.ActiveCfg = OVH|Any CPU
@@ -31,6 +34,8 @@ Global
{3753524E-FD74-4896-A4EB-EEE1406F94CF}.Release|Any CPU.Build.0 = Release|Any CPU
{88774E43-68A1-4E52-B692-493FEE0BA5C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{88774E43-68A1-4E52-B692-493FEE0BA5C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{88774E43-68A1-4E52-B692-493FEE0BA5C2}.IIS01|Any CPU.ActiveCfg = Release|Any CPU
{88774E43-68A1-4E52-B692-493FEE0BA5C2}.IIS01|Any CPU.Build.0 = Release|Any CPU
{88774E43-68A1-4E52-B692-493FEE0BA5C2}.IIS02|Any CPU.ActiveCfg = Release|Any CPU
{88774E43-68A1-4E52-B692-493FEE0BA5C2}.IIS02|Any CPU.Build.0 = Release|Any CPU
{88774E43-68A1-4E52-B692-493FEE0BA5C2}.OVH|Any CPU.ActiveCfg = Release|Any CPU
@@ -39,6 +44,8 @@ Global
{88774E43-68A1-4E52-B692-493FEE0BA5C2}.Release|Any CPU.Build.0 = Release|Any CPU
{D2ED1B6F-171D-4A7F-B0D5-87942451B79D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D2ED1B6F-171D-4A7F-B0D5-87942451B79D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D2ED1B6F-171D-4A7F-B0D5-87942451B79D}.IIS01|Any CPU.ActiveCfg = Release|Any CPU
{D2ED1B6F-171D-4A7F-B0D5-87942451B79D}.IIS01|Any CPU.Build.0 = Release|Any CPU
{D2ED1B6F-171D-4A7F-B0D5-87942451B79D}.IIS02|Any CPU.ActiveCfg = Release|Any CPU
{D2ED1B6F-171D-4A7F-B0D5-87942451B79D}.IIS02|Any CPU.Build.0 = Release|Any CPU
{D2ED1B6F-171D-4A7F-B0D5-87942451B79D}.OVH|Any CPU.ActiveCfg = Release|Any CPU
@@ -47,6 +54,8 @@ Global
{D2ED1B6F-171D-4A7F-B0D5-87942451B79D}.Release|Any CPU.Build.0 = Release|Any CPU
{6A63FCE4-8388-4C62-9339-CCCF013C5D8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A63FCE4-8388-4C62-9339-CCCF013C5D8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A63FCE4-8388-4C62-9339-CCCF013C5D8A}.IIS01|Any CPU.ActiveCfg = Release|Any CPU
{6A63FCE4-8388-4C62-9339-CCCF013C5D8A}.IIS01|Any CPU.Build.0 = Release|Any CPU
{6A63FCE4-8388-4C62-9339-CCCF013C5D8A}.IIS02|Any CPU.ActiveCfg = Release|Any CPU
{6A63FCE4-8388-4C62-9339-CCCF013C5D8A}.IIS02|Any CPU.Build.0 = Release|Any CPU
{6A63FCE4-8388-4C62-9339-CCCF013C5D8A}.OVH|Any CPU.ActiveCfg = Release|Any CPU
@@ -55,6 +64,8 @@ Global
{6A63FCE4-8388-4C62-9339-CCCF013C5D8A}.Release|Any CPU.Build.0 = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.IIS01|Any CPU.ActiveCfg = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.IIS01|Any CPU.Build.0 = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.IIS02|Any CPU.ActiveCfg = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.IIS02|Any CPU.Build.0 = Release|Any CPU
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.OVH|Any CPU.ActiveCfg = Release|Any CPU
@@ -65,4 +76,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F726D559-A3E0-47D8-B3B7-86F0B8F80A97}
EndGlobalSection
EndGlobal
@@ -0,0 +1,73 @@
<?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 http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>True</ExcludeApp_Data>
<MSDeployServiceURL>https://IIS02:8172/MsDeploy.axd</MSDeployServiceURL>
<DeployIisAppPath>Default Web Site/WebSCR</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>steamw\administrator</UserName>
<_SavePWD>True</_SavePWD>
<PublishDatabaseSettings>
<Objects xmlns="">
<ObjectGroup Name="SteamWare.Properties.Settings.DS_AuthConnectionString" Order="1" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL2012DEV;Initial Catalog=WebSCR;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=SQL2012DEV;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer16;" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
<ObjectGroup Name="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString" Order="2" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL2012DEV;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer16" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\WebSCR_data.Properties.Settings.WebSCR_filesConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL2012DEV;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer16;" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
<ObjectGroup Name="WebSCR_data.Properties.Settings.WebSCRConnectionString" Order="3" Enabled="False">
<Destination Path="" />
<Object Type="DbDacFx">
<PreSource Path="Data Source=SQL2012DEV;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer16" includeData="False" />
<Source Path="$(IntermediateOutputPath)AutoScripts\WebSCR_data.Properties.Settings.WebSCRConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
</Object>
<UpdateFrom Type="Web.Config">
<Source MatchValue="Data Source=SQL2012DEV;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer16;" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
</UpdateFrom>
</ObjectGroup>
</Objects>
</PublishDatabaseSettings>
<ADUsesOwinOrOpenIdConnect>False</ADUsesOwinOrOpenIdConnect>
<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="WebSCR_data.Properties.Settings.WebSCRConnectionString-Web.config Connection String">
<UpdateDestWebConfig>False</UpdateDestWebConfig>
</MSDeployParameterValue>
<MSDeployParameterValue Include="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString-Web.config Connection String">
<UpdateDestWebConfig>False</UpdateDestWebConfig>
</MSDeployParameterValue>
</ItemGroup>
</Project>
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Questo file viene usato dal processo di pubblicazione/creazione pacchetto del progetto Web. È possibile personalizzare il comportamento del processo
modificando il file MSBuild. Per altre informazioni su questo argomento, vedere https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TimeStampOfAssociatedLegacyPublishXmlFile />
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAxuK+nr/9g0KSCaOI75B13AAAAAACAAAAAAADZgAAwAAAABAAAAD1F/RhBSz2MteBl1gIuNWdAAAAAASAAACgAAAAEAAAAOyiRZsJgs+bayYKV89Q5K8YAAAAnfbKbvUkA9GBAHbXvSh6QEEyNciDbJnMFAAAAErftYBbcGo3U7T/brHWmhBqQlxz</EncryptedPassword>
</PropertyGroup>
</Project>
@@ -60,8 +60,14 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<WDPMergeOption>DonotMerge</WDPMergeOption>
</PropertyGroup>
<ItemGroup>
<MSDeployParameterValue Include="$(DeployParameterPrefix)SteamWare.Properties.Settings.DS_AuthConnectionString-Web.config Connection String" />
<MSDeployParameterValue Include="$(DeployParameterPrefix)WebSCR_data.Properties.Settings.WebSCRConnectionString-Web.config Connection String" />
<MSDeployParameterValue Include="$(DeployParameterPrefix)WebSCR_data.Properties.Settings.WebSCR_filesConnectionString-Web.config Connection String" />
<MSDeployParameterValue Include="SteamWare.Properties.Settings.DS_AuthConnectionString-Web.config Connection String">
<UpdateDestWebConfig>False</UpdateDestWebConfig>
</MSDeployParameterValue>
<MSDeployParameterValue Include="WebSCR_data.Properties.Settings.WebSCRConnectionString-Web.config Connection String">
<UpdateDestWebConfig>False</UpdateDestWebConfig>
</MSDeployParameterValue>
<MSDeployParameterValue Include="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString-Web.config Connection String">
<UpdateDestWebConfig>False</UpdateDestWebConfig>
</MSDeployParameterValue>
</ItemGroup>
</Project>
+2
View File
@@ -414,9 +414,11 @@
<Content Include="fonts\fontawesome-webfont.woff" />
<Content Include="fonts\fontawesome-webfont.ttf" />
<Content Include="fonts\fontawesome-webfont.eot" />
<None Include="Properties\PublishProfiles\IIS01.pubxml" />
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
<None Include="Properties\PublishProfiles\OVH-Rigamonti.pubxml" />
<None Include="Scripts\jquery-2.2.0.intellisense.js" />
<Content Include="Properties\PublishProfiles\IIS01.pubxml.user" />
<Content Include="Properties\PublishProfiles\IIS02.pubxml.user" />
<Content Include="Properties\PublishProfiles\OVH-Rigamonti.pubxml.user" />
<Content Include="Scripts\jquery-2.2.0.js" />
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<NameOfLastUsedPublishProfile>OVH-Rigamonti</NameOfLastUsedPublishProfile>
<NameOfLastUsedPublishProfile>IIS01</NameOfLastUsedPublishProfile>
<ProjectView>ShowAllFiles</ProjectView>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
@@ -10,7 +10,7 @@
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
<LastActiveSolutionConfig>OVH|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>