Jenkinsfile 2.66 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 ${env.BRANCH_NAME}"
incardon's avatar
incardon committed
13 14 15 16
                    }

                    stage ('run_nyu')
                    {
incardon's avatar
incardon committed
17 18 19 20
                      parallel (
                      "1" : {sh "./run.sh $WORKSPACE $NODE_NAME 1"},
                      "2" : {sh "./run.sh $WORKSPACE $NODE_NAME 2"},
                      "3" : {sh "./run.sh $WORKSPACE $NODE_NAME 3"})
incardon's avatar
incardon committed
21
                      sh "./run.sh $WORKSPACE $NODE_NAME 5"
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
                    }
                  }
                 },




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

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


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

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

)