From 60fc63075c94e13e9926367f4cdfbf1970c8129a Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 12 Feb 2019 12:34:30 +0100 Subject: [PATCH] update vers number --- Jenkinsfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c6518a6..71fbbf2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,8 @@ pipeline { EMAIL_RECIPIENTS = 'samuele@steamware.net' enableIIS01 = 'Y' enableIIS02 = 'Y' + enableRiga1 = 'N' + enableRiga2 = 'Y' } stages { stage('Checkout') { @@ -20,7 +22,7 @@ pipeline { /* calcolo numero versione... diverso x branch MASTER/DEVELOP */ script { - withEnv(['NEXT_BUILD_NUMBER=273']) { + withEnv(['NEXT_BUILD_NUMBER=274']) { // 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' @@ -99,9 +101,19 @@ pipeline { } if (env.BRANCH_NAME == "OVH") { parallel ( - PUB_PROD: { + OVH_Riga1: { + if(env.enableRiga1 == "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=OVH-Rigamonti.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/ WebSCR/WebSCR.csproj" + } + }, + OVH_Riga2: { + if(env.enableRiga2 == "Y") + { + sleep 2 + 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-Rigamonti2.pubxml /p:VisualStudioVersion=15.0 /p:RunCodeAnalysis=false /p:Configuration=OVH-Riga2 /p:username=WPROD01\\Steamware /p:Password=viaD@nte16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ WebSCR/WebSCR.csproj" + } }, failFast: false) }