Jenkinsfile 2.44 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
                      sh "./success.sh 2 nyu opefpm_pdata"
incardon's avatar
incardon committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35
                    }
                  }
                 },




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

                    stage ('run_sb15')
                    {
incardon's avatar
incardon committed
41 42 43 44 45 46 47
                      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
48
                      sh "./success.sh 2 sbalzarini-mac-15 opefpm_pdata"
incardon's avatar
incardon committed
49 50
                    }
                  }
incardon's avatar
incardon committed
51
                 },
incardon's avatar
incardon committed
52 53 54 55 56 57 58 59 60


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

                    stage ('run_gin')
                    {
incardon's avatar
incardon committed
66
                      parallel (
incardon's avatar
incardon committed
67 68 69
                      "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
70 71
                      "p4" : {sh "./run.sh $WORKSPACE $NODE_NAME 5"}
                      )
incardon's avatar
incardon committed
72
                      sh "./success.sh 2 gin opefpm_pdata"
incardon's avatar
incardon committed
73 74 75 76 77 78
                    }
                  }
                 }

)