Jenkinsfile 2.81 KB
Newer Older
incardon's avatar
incardon committed
1 2 3 4 5 6 7
#!groovy

parallel (

"nyu" : {node ('nyu')
                  {
                    deleteDir()
incardon's avatar
incardon committed
8 9 10 11 12 13 14 15 16 17 18

                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
19
                        sleep(50)
incardon's avatar
incardon committed
20 21 22
                      }
                    }

incardon's avatar
incardon committed
23 24
                    stage ('build_nyu')
                    {
incardon's avatar
incardon committed
25
                      sh "./build.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
incardon's avatar
incardon committed
26 27 28 29
                    }

                    stage ('run_nyu')
                    {
incardon's avatar
incardon committed
30
                      sh "cd openfpm_io && ./run.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
incardon's avatar
incardon committed
31
                      sh "cd openfpm_io && ./success.sh 2 nyu openfpm_io"
incardon's avatar
incardon committed
32 33 34 35 36 37 38 39 40
                    }
                  }
                 },


"sb15" : {node ('sbalzarini-mac-15')
                  {
                    deleteDir()
                    env.PATH = "/usr/local/bin:${env.PATH}"
incardon's avatar
incardon committed
41 42 43 44 45 46 47 48 49 50 51

                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
52
                        sleep(50)
incardon's avatar
incardon committed
53 54 55
                      }
                    }

incardon's avatar
incardon committed
56 57
                    stage ('build_sb15')
                    {
incardon's avatar
incardon committed
58
                      sh "echo $PATH && ./build.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
incardon's avatar
incardon committed
59 60
                    }

incardon's avatar
incardon committed
61
                    stage ('run_sb15')
incardon's avatar
incardon committed
62
                    {
incardon's avatar
incardon committed
63
                      sh "cd openfpm_io && ./run.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
incardon's avatar
incardon committed
64
                      sh "cd openfpm_io && ./success.sh 2 sbalzarini-mac-15 openfpm_io"
incardon's avatar
incardon committed
65 66 67 68 69 70 71
                    }
                  }
                 },

"gin" : {node ('gin')
                  {
                    deleteDir()
incardon's avatar
incardon committed
72 73 74 75 76 77 78 79 80 81 82

                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
83
                        sleep(50)
incardon's avatar
incardon committed
84 85 86
                      }
                    }

incardon's avatar
incardon committed
87 88
                    stage ('build_gin')
                    {
incardon's avatar
incardon committed
89
                      sh "echo $PATH && ./build.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
incardon's avatar
incardon committed
90 91 92 93
                    }

                    stage ('run_gin')
                    {
incardon's avatar
incardon committed
94
                      sh "cd openfpm_io && ./run.sh $WORKSPACE $NODE_NAME $BRANCH_NAME"
incardon's avatar
incardon committed
95
                      sh "cd openfpm_io && ./success.sh 2 gin openfpm_io"
incardon's avatar
incardon committed
96 97 98 99 100
                    }
                  }
                 }
)