Jenkinsfile_mpi 2.77 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 21 22 23 24
#!groovy

parallel (

"ubuntu" : {node ('cifarm-ubuntu-node')
                  {
                    deleteDir()

                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
                        sleep(10)
                      }
                    }

                    stage ('ubuntu build')
                    {
incardon's avatar
incardon committed
25
                      sh "./build.sh $WORKSPACE $NODE_NAME NO $BRANCH_NAME"
incardon's avatar
incardon committed
26 27
                    }

incardon's avatar
incardon committed
28
                    stage ('ubuntu run')
incardon's avatar
incardon committed
29
                    {
incardon's avatar
incardon committed
30 31
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME NO"
                      sh "cd openfpm_data && ./success.sh 2 ubuntu openfpm_data"
incardon's avatar
incardon committed
32 33 34 35 36 37
                    }
                  }
                 },



incardon's avatar
incardon committed
38
"macosx" : {node ('cifarm-mac-node')
incardon's avatar
incardon committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
                  {
                    deleteDir()

                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
                        sleep(10)
                      }
                    }

                    stage ('macos build')
                    {
incardon's avatar
incardon committed
58
                      sh "./build.sh $WORKSPACE $NODE_NAME NO $BRANCH_NAME"
incardon's avatar
incardon committed
59 60 61 62
                    }

                    stage ('macos run')
                    {
incardon's avatar
incardon committed
63 64
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME NO"
                      sh "cd openfpm_data && ./success.sh 2 centos openfpm_data"
incardon's avatar
incardon committed
65 66 67
                    }
                  }
                 },
incardon's avatar
incardon committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88

"centos" : {node ('cifarm-centos-node')
                  {
                    deleteDir()

                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
                        sleep(10)
                      }
                    }

                    stage ('centos build')
                    {
incardon's avatar
incardon committed
89
                      sh "./build.sh $WORKSPACE $NODE_NAME NO $BRANCH_NAME"
incardon's avatar
incardon committed
90 91
                    }

incardon's avatar
incardon committed
92
                    stage ('centos run')
incardon's avatar
incardon committed
93
                    {
incardon's avatar
incardon committed
94 95
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME NO"
                      sh "cd openfpm_data && ./success.sh 2 centos openfpm_data"
incardon's avatar
incardon committed
96 97 98 99 100 101
                    }
                  }
                 },



incardon's avatar
incardon committed
102 103
)