From 5af7edf39241bc4959e16f490b81846d9ea62cd4 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Sun, 11 Nov 2018 15:32:50 +0100 Subject: [PATCH] rivisto parallelismo build... --- Jenkinsfile | 37 ++++++++++++------------------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cc6fb404..e51bb564 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,8 +11,13 @@ pipeline { agent any steps { /* build delle SteamWare libs! */ - /* build 'SteamWare/SteamWareLib' */ + /* build 'SteamWare/SteamWareLib' */ + /* copio le libs...*/ + // mirroring directory x SteamWare Libs + bat "robocopy /MIR ..\\..\\SteamWare\\SteamWareLib ..\\SteamWare\\SteamWareLib || EXIT /B 0" + + // metodi nON funzionanti // step([$class: 'CopyArtifact', fingerprintArtifacts: true, projectName: 'SteamWare/SteamWareLib', selector: [$class: 'WorkspaceSelector'], target: '../SteaWware/SteamWareLib']) // script { // step ([$class: 'CopyArtifact', @@ -20,19 +25,10 @@ pipeline { // filter: "S*", // target: '../Steamware']); // } - // copyArtifacts fingerprintArtifacts: true, projectName: 'SteamWare', selector: lastSuccessful() // copyArtifacts filter: 'SteamWareLib', fingerprintArtifacts: true, projectName: 'SteamWare', selector: lastSuccessful() // copyArtifacts filter: 'SteamWareLib', projectName: 'SteamWare', selector: lastSuccessful(), target: '../' - // mirroring directory x SteamWare Libs - bat "robocopy /MIR ..\\..\\SteamWare\\SteamWareLib ..\\SteamWare\\SteamWareLib || EXIT /B 0" - - - - - - // checkout steamwarelibs.. // checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '1d76e8b0-61a1-4b65-abab-bf9ffa5d29c8', url: 'https://gogs.steamware.net/SteamwareSrl/SteamWare.git']]]) @@ -72,28 +68,19 @@ pipeline { /* compilo installers in base al BRANCH del cliente... */ if (env.BRANCH_NAME == "develop") { parallel ( - LANDING: { - sleep 5 - bat "\"${tool 'MSBuild-15.0'}\" MP-LAND/MP-LAND.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" - }, - ADMIN: { + ADMIN_IO: { sleep 0 bat "\"${tool 'MSBuild-15.0'}\" MP-ADM/MP-ADM.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" - }, - IO: { - sleep 4 bat "\"${tool 'MSBuild-15.0'}\" MP-IO/MP-IO.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" }, - MON: { - sleep 3 + LANDING_MON: { + sleep 2 + bat "\"${tool 'MSBuild-15.0'}\" MP-LAND/MP-LAND.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" bat "\"${tool 'MSBuild-15.0'}\" MP-MON/MP-MON.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" }, - SITE: { - sleep 1 + SITE_TAB: { + sleep 4 bat "\"${tool 'MSBuild-15.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-15.0'}\" MP-TAB/MP-TAB.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" }, failFast: false)