From d89d3af2ea9b6c3d56a2a00afbcdab390558dd01 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 12 Apr 2017 15:39:03 +0200 Subject: [PATCH] tolto sleep a 0, inserito agent 'master' al posto di any... --- Jenkinsfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 399c41c..c9b006a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,7 @@ pipeline { agent none stages { stage('Checkout') { - agent any + agent 'master' steps { /* build delle SteamWare libs! */ /*build 'SteamWare/SteamWareLib'*/ @@ -38,39 +38,35 @@ pipeline { } } stage('Build') { - agent any + agent 'master' steps { parallel ( HOME: { bat "\"${tool 'MSBuild-14.0'}\" HOME\\HOME.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" }, ADMIN: { - sleep 0 bat "\"${tool 'MSBuild-14.0'}\" GPW_Admin\\GPW_Admin.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" }, BARCODE: { - sleep 0 bat "\"${tool 'MSBuild-14.0'}\" GPW_Barcode\\GPW_Barcode.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" }, SMART: { - sleep 0 bat "\"${tool 'MSBuild-14.0'}\" GPW_Smart\\GPW_Smart.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" }, COMMESSE: { - sleep 0 bat "\"${tool 'MSBuild-14.0'}\" GPW_Commesse\\GPW_Commesse.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m" }, failFast: false) } } stage('Test') { - agent any + agent 'master' steps { echo 'Testing.. 2 be done...' } } stage('Deploy') { - agent any + agent 'master' steps { script { if (env.BRANCH_NAME == "master") { @@ -112,7 +108,7 @@ pipeline { } } stage('Installers') { - agent any + agent 'master' steps { script { if (env.BRANCH_NAME == "master") {