From cb5e3394b2c1e6dd986e018bfa7d475e6635db43 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 17 Oct 2017 16:17:12 +0200 Subject: [PATCH] Aggiunto stager build... --- Jenkinsfile | 62 ++++++++++++++++++----------------------------------- 1 file changed, 21 insertions(+), 41 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e714c15..193e076 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,47 +31,27 @@ pipeline { bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0" } } - // stage('Build') { - // agent any - // steps { - // script { - // /* compilo installers in base al BRANCH del cliente... */ - // if (env.BRANCH_NAME == "develop") { - // /* CAMBIO numero versione in file sorgente!!! */ - // bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0" - // parallel ( - // LANDING: { - // sleep 5 - // bat "\"${tool 'MSBuild-14.0'}\" MP/MP.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" - // }, - // ADMIN: { - // sleep 0 - // bat "\"${tool 'MSBuild-14.0'}\" MP-Admin/MP-Admin.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" - // }, - // IO: { - // sleep 4 - // bat "\"${tool 'MSBuild-14.0'}\" MP-IO/MP-IO.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" - // }, - // MON: { - // sleep 3 - // bat "\"${tool 'MSBuild-14.0'}\" MP-MON/MP-MON.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" - // }, - // SITE: { - // sleep 1 - // bat "\"${tool 'MSBuild-14.0'}\" MP-Site/MP-Site.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" - // }, - // TABLET: { - // sleep 2 - // bat "\"${tool 'MSBuild-14.0'}\" MP-Tablet/MP-Tablet.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" - // }, - // failFast: false) - // } - // else { - // echo 'Nothing to Build...' - // } - // } - // } - // } + stage('Build') { + agent any + steps { + script { + /* compilo installers in base al BRANCH del cliente... */ + if (env.BRANCH_NAME == "develop") { + /* CAMBIO numero versione in file sorgente!!! */ + bat "fart.exe VersGen\\VersGen.cs 000.000 ${env.versionNumber} || EXIT /B 0" + parallel ( + WEBGIM-SITE: { + sleep 5 + bat "\"${tool 'MSBuild-14.0'}\" GIM_site/GIM_site.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" + }, + failFast: false) + } + else { + echo 'Nothing to Build...' + } + } + } + } // stage('Test') { // steps { // echo 'Testing.. 2 be done...'