update jenkinsfile...

This commit is contained in:
Samuele E. Locatelli
2018-01-15 18:08:11 +01:00
parent 3d800d11bf
commit 3d9e70ccbd
Vendored
+33 -33
View File
@@ -76,39 +76,39 @@ pipeline {
}
}
}
stage('RemoteDeploy') {
agent any
steps {
script {
// /* compilo installers in base al BRANCH del cliente... */
// 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}\\MedAP.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=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/ MedAP/MedAP.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}\\MedAP.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/ MedAP/MedAP.csproj"
// },
// failFast: false)
// }
// else{
// echo 'Questo BRANCH non necessita di RemoteDeploy...'
// }
}
}
}
// stage('RemoteDeploy') {
// agent any
// steps {
// script {
// /* compilo installers in base al BRANCH del cliente... */
// 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}\\MedAP.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=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/ MedAP/MedAP.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}\\MedAP.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/ MedAP/MedAP.csproj"
// },
// failFast: false)
// }
// else{
// echo 'Questo BRANCH non necessita di RemoteDeploy...'
// }
// }
// }
// }
/*stage('Archive') {
steps {
echo 'Archiviazione build Release'