Jenkinsfile_mpi 3.02 KB
Newer Older
incardon's avatar
incardon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!groovy

parallel (


"cifarm-centos-node" : {node ('cifarm-centos-node')
                  {
                    deleteDir()
                    checkout scm
                    stage ('build centos')
                    {
                      sh "./build.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
                    }

                    stage ('run centos')
                    {
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 2 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 3 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 4 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 5 $BRANCH_NAME"
incardon's avatar
incardon committed
21
                      sh "cd openfpm_vcluster && ./success.sh 2 centos openfpm_vcluster"
incardon's avatar
incardon committed
22 23 24 25 26 27 28 29 30 31 32
                    }
                  }
                 },




"cifarm-mac-node" : {node ('cifarm-mac-node')
                  {
                    deleteDir()
                    checkout scm
incardon's avatar
incardon committed
33
                    stage ('build mac')
incardon's avatar
incardon committed
34 35 36 37
                    {
                      sh "./build.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
                    }

incardon's avatar
incardon committed
38
                    stage ('run mac')
incardon's avatar
incardon committed
39 40 41 42 43 44 45
                    {
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 2 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 3 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 4 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 5 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 6 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 7 $BRANCH_NAME"
incardon's avatar
incardon committed
46 47 48
                      sh "cd openfpm_vcluster && ./success.sh 2 mac openfpm_vcluster"
                    }
                  }
incardon's avatar
incardon committed
49
                 },
incardon's avatar
incardon committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68

"cifarm-ubuntu-node" : {node ('cifarm-ubuntu-node')
                  {
                    deleteDir()
                    checkout scm
                    stage ('build ubuntu')
                    {
                      sh "./build.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
                    }

                    stage ('run ubuntu')
                    {
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 2 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 3 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 4 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 5 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 6 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./run.sh $WORKSPACE $NODE_NAME 7 $BRANCH_NAME"
                      sh "cd openfpm_vcluster && ./success.sh 2 ubuntu openfpm_vcluster"
incardon's avatar
incardon committed
69 70 71 72 73 74
                    }
                  }
                 }

)