diff --git a/Jenkinsfile b/Jenkinsfile index b6b7997..7e5df80 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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) } diff --git a/ScheMe-PIC/Properties/PublishProfiles/DEMO-OVH.pubxml b/ScheMe-PIC/Properties/PublishProfiles/DEMO-OVH.pubxml index 1c02b11..994a8cb 100644 --- a/ScheMe-PIC/Properties/PublishProfiles/DEMO-OVH.pubxml +++ b/ScheMe-PIC/Properties/PublishProfiles/DEMO-OVH.pubxml @@ -6,13 +6,13 @@ by editing this MSBuild file. In order to learn more about this please visit htt MSDeploy - CUSBG + DEMO-OVH Any CPU - http://scheme.steamware.net/PIC/CusBG + http://scheme.steamware.net/PIC/DEMO True True https://wprod01.steamware.net:8172/MsDeploy.axd - scheme.steamware.net/PIC/CusBG + scheme.steamware.net/PIC/DEMO False WMSVC @@ -22,43 +22,43 @@ by editing this MSBuild file. In order to learn more about this please visit htt - + - + - + - + - + - + - + - + - + - + @@ -71,10 +71,10 @@ by editing this MSBuild file. In order to learn more about this please visit htt - Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC;Persist Security Info=True;User ID=sa;Password=keyhammer16 + Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC-TEST;Persist Security Info=True;User ID=sa;Password=keyhammer16 - Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC_files;Persist Security Info=True;User ID=sa;Password=keyhammer16 + Data Source=WPROD01\SQL2012;Initial Catalog=ScheMe-PIC-TEST_files;Persist Security Info=True;User ID=sa;Password=keyhammer16 False diff --git a/ScheMe-PIC/Properties/PublishProfiles/PROD-OVH.pubxml b/ScheMe-PIC/Properties/PublishProfiles/PROD-OVH.pubxml index 1c02b11..c0b943d 100644 --- a/ScheMe-PIC/Properties/PublishProfiles/PROD-OVH.pubxml +++ b/ScheMe-PIC/Properties/PublishProfiles/PROD-OVH.pubxml @@ -6,13 +6,13 @@ by editing this MSBuild file. In order to learn more about this please visit htt MSDeploy - CUSBG + PROD-OVH Any CPU - http://scheme.steamware.net/PIC/CusBG + http://scheme.steamware.net/PIC/PROD True True https://wprod01.steamware.net:8172/MsDeploy.axd - scheme.steamware.net/PIC/CusBG + scheme.steamware.net/PIC/PROD False WMSVC