From b4f3c451d7822b1a10e8c758a48f1a0bf3fbd99d Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Sun, 23 Oct 2016 23:34:19 +0200 Subject: [PATCH] Adding parallel pipeline for jenkins --- Jenkinsfile | 57 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 48 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 62c79b7..14880e4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,50 @@ #!groovy -node ('gin') -{ - stage 'build' - checkout scm - sh "./build_device.sh $WORKSPACE $NODE_NAME" - - stage 'run' - sh "./src/mem" -} + +parallel ( + +"gin" : {node ('gin') + { + stage ('gin_build') + { + checkout scm + sh "./build.sh $WORKSPACE $NODE_NAME" + } + + stage ('gin_run') + { + sh "./src/mem" + } + }}, + +"nyu" : {node ('nyu') + { + stage ('nyu_build') + { + checkout scm + sh "./build.sh $WORKSPACE $NODE_NAME" + } + + stage ('nyu_run') + { + sh "./src/mem" + } + }}, + +"sb15" : {node ('sbalzarini-mac-15') + { + env.PATH = "/usr/local/bin:${env.PATH}" + stage ('sb15_build') + { + checkout scm + sh "./build.sh $WORKSPACE $NODE_NAME" + } + + stage ('sb15_run') + { + sh "./src/mem" + } + }} + + +) -- GitLab