Jenkinsfile 2.88 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 0 $BRANCH_NAME }"
incardon's avatar
incardon committed
13 14 15 16
                    }

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




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

                    stage ('run_sb15')
                    {
incardon's avatar
incardon committed
42
                      parallel (
incardon's avatar
incardon committed
43 44 45
                      "1" : {sh "./run.sh $WORKSPACE $NODE_NAME 1 0 0  $BRANCH_NAME"},
                      "2" : {sh "./run.sh $WORKSPACE $NODE_NAME 2 0 0  $BRANCH_NAME"},
                      "3" : {sh "./run.sh $WORKSPACE $NODE_NAME 3 0 0  $BRANCH_NAME"}
incardon's avatar
incardon committed
46
                      )
47 48 49 50
                      sh "./run.sh $WORKSPACE $NODE_NAME 4 0 0 $BRANCH_NAME"
                      sh "./run.sh $WORKSPACE $NODE_NAME 5 0 0 $BRANCH_NAME"
                      sh "./run.sh $WORKSPACE $NODE_NAME 6 0 0 $BRANCH_NAME"
                      sh "./run.sh $WORKSPACE $NODE_NAME 7 0 0 $BRANCH_NAME"
incardon's avatar
incardon committed
51
                      sh "./success.sh 2 sbalzarini-mac-15 opefpm_pdata"
incardon's avatar
incardon committed
52 53
                    }
                  }
incardon's avatar
incardon committed
54
                 },
incardon's avatar
incardon committed
55 56 57 58 59 60 61 62 63


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

                    stage ('run_gin')
                    {
incardon's avatar
incardon committed
69
                      parallel (
incardon's avatar
incardon committed
70 71 72 73
                      "p1" : {sh "./run.sh $WORKSPACE $NODE_NAME 1 0 0  $BRANCH_NAME"},
                      "p2" : {sh "./run.sh $WORKSPACE $NODE_NAME 2 0 0  $BRANCH_NAME"},
                      "p3" : {sh "./run.sh $WORKSPACE $NODE_NAME 3 0 0  $BRANCH_NAME"},
                      "p4" : {sh "./run.sh $WORKSPACE $NODE_NAME 5 0 0  $BRANCH_NAME"}
incardon's avatar
incardon committed
74
                      )
incardon's avatar
incardon committed
75
                      sh "./success.sh 2 gin opefpm_pdata"
incardon's avatar
incardon committed
76 77 78 79 80 81
                    }
                  }
                 }

)