Jenkinsfile 2.25 KB
Newer Older
incardon's avatar
incardon committed
1 2 3 4 5 6 7 8 9 10 11
#!groovy

parallel (


"nyu" : {node ('nyu')
                  {
                    deleteDir()
                    checkout scm
                    stage ('build_nyu')
                    {
incardon's avatar
incardon committed
12
                      sh "./build.sh $WORKSPACE $NODE_NAME pdata"
incardon's avatar
incardon committed
13 14 15 16
                    }

                    stage ('run_nyu')
                    {
incardon's avatar
incardon committed
17 18 19 20
                      sh "./run.sh $WORKSPACE $NODE_NAME 1"
                      sh "./run.sh $WORKSPACE $NODE_NAME 2"
                      sh "./run.sh $WORKSPACE $NODE_NAME 3"
                      sh "./run.sh $WORKSPACE $NODE_NAME 5"
incardon's avatar
incardon committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34
                    }
                  }
                 },




"sb15" : {node ('sbalzarini-mac-15')
                  {
                    deleteDir()
                    env.PATH = "/usr/local/bin:${env.PATH}"
                    checkout scm
                    stage ('build_sb15')
                    {
incardon's avatar
incardon committed
35
                      sh "./build.sh $WORKSPACE $NODE_NAME pdata"
incardon's avatar
incardon committed
36 37 38 39
                    }

                    stage ('run_sb15')
                    {
incardon's avatar
incardon committed
40 41 42 43 44 45 46
                      sh "./run.sh $WORKSPACE $NODE_NAME 1"
                      sh "./run.sh $WORKSPACE $NODE_NAME 2"
                      sh "./run.sh $WORKSPACE $NODE_NAME 3"
                      sh "./run.sh $WORKSPACE $NODE_NAME 4"
                      sh "./run.sh $WORKSPACE $NODE_NAME 5"
                      sh "./run.sh $WORKSPACE $NODE_NAME 6"
                      sh "./run.sh $WORKSPACE $NODE_NAME 7"
incardon's avatar
incardon committed
47 48
                    }
                  }
incardon's avatar
incardon committed
49
                 },
incardon's avatar
incardon committed
50 51 52 53 54 55 56 57 58


"gin" : {node ('gin')
                  {
                    deleteDir()
                    env.PATH = "/usr/local/bin:${env.PATH}"
                    checkout scm
                    stage ('build_gin')
                    {
incardon's avatar
incardon committed
59
                      sh "./build.sh $WORKSPACE $NODE_NAME pdata"
incardon's avatar
incardon committed
60 61 62 63
                    }

                    stage ('run_gin')
                    {
incardon's avatar
incardon committed
64
                      parallel (
incardon's avatar
incardon committed
65 66 67
                      "p1" : {sh "./run.sh $WORKSPACE $NODE_NAME 1"},
                      "p2" : {sh "./run.sh $WORKSPACE $NODE_NAME 2"},
                      "p3" : {sh "./run.sh $WORKSPACE $NODE_NAME 3"},
incardon's avatar
incardon committed
68 69
                      "p4" : {sh "./run.sh $WORKSPACE $NODE_NAME 5"}
                      )
incardon's avatar
incardon committed
70 71 72 73 74 75
                    }
                  }
                 }

)