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

parallel (

"nyu_VALGRIND" : {node ('nyu')
                  {
7
                    deleteDir()
incardon's avatar
incardon committed
8

incardon's avatar
incardon committed
9
                    int ntry = 5
incardon's avatar
incardon committed
10 11 12 13 14 15
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
incardon's avatar
incardon committed
16
                      catch (IOException e)
incardon's avatar
incardon committed
17
                      {
incardon's avatar
incardon committed
18
                        ntry--
19
                        sleep(10)
incardon's avatar
incardon committed
20 21 22
                      }
                    }

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

                    stage ('run_nyu_val')
                    {
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME VALGRIND"
incardon's avatar
incardon committed
31
                      sh "cd openfpm_data && ./success.sh 1 nyu openfpm_data valgrind"
incardon's avatar
incardon committed
32 33 34 35 36 37 38
                    }
                  }
                 },


"nyu_NO" : {node ('nyu')
                  {
39
                    deleteDir()
incardon's avatar
incardon committed
40 41 42 43 44 45 46 47 48 49 50

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

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

                    stage ('run_nyu_nor')
                    {
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME NO"
incardon's avatar
incardon committed
63
                      sh "cd openfpm_data && ./success.sh 2 nyu openfpm_data"
incardon's avatar
incardon committed
64 65 66 67 68 69
                    }
                  }
                 },

"nyu_SE" : {node ('nyu')
                  {
70
                    deleteDir()
incardon's avatar
incardon committed
71 72 73 74 75 76 77 78 79 80 81

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

incardon's avatar
incardon committed
86 87
                    stage ('build_nyu_se')
                    {
88
                      sh "./build.sh $WORKSPACE $NODE_NAME SE $BRANCH_NAME"
incardon's avatar
incardon committed
89 90 91 92 93
                    }

                    stage ('run_nyu_se')
                    {
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME SE"
incardon's avatar
incardon committed
94
                      sh "cd openfpm_data && ./success.sh 1 nyu openfpm_data \"security enhancements\""
incardon's avatar
incardon committed
95 96 97 98 99 100
                    }
                  }
                 },

"sb15_VALGRIND" : {node ('sbalzarini-mac-15')
                  {
101
                    deleteDir()
incardon's avatar
incardon committed
102
                    env.PATH = "/usr/local/bin:${env.PATH}"
incardon's avatar
incardon committed
103 104 105 106 107 108 109 110 111 112 113
                    
                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
114
                        sleep(10)
incardon's avatar
incardon committed
115 116 117
                      }
                    }

incardon's avatar
incardon committed
118 119
                    stage ('build_sb15_val')
                    {
120
                      sh "echo $PATH && ./build.sh $WORKSPACE $NODE_NAME VALGRIND $BRANCH_NAME"
incardon's avatar
incardon committed
121 122 123 124 125
                    }

                    stage ('run_sb15_val')
                    {
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME VALGRIND"
incardon's avatar
incardon committed
126
                      sh "cd openfpm_data && ./success.sh 1 sbalzarini-mac-15 openfpm_data valgrind"
incardon's avatar
incardon committed
127 128 129 130 131 132 133
                    }
                  }
                 },


"sb15_NO" : {node ('sbalzarini-mac-15')
                  {
134
                    deleteDir()
incardon's avatar
incardon committed
135
                    env.PATH = "/usr/local/bin:${env.PATH}"
incardon's avatar
incardon committed
136 137 138 139 140 141 142 143 144 145 146

                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
147
                        sleep(10)
incardon's avatar
incardon committed
148 149 150
                      }
                    }

incardon's avatar
incardon committed
151 152
                    stage ('build_sb15_nor')
                    {
153
                      sh "./build.sh $WORKSPACE $NODE_NAME NO $BRANCH_NAME"
incardon's avatar
incardon committed
154 155 156 157 158
                    }

                    stage ('run_sb15_nor')
                    {
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME NO"
incardon's avatar
incardon committed
159
                      sh "cd openfpm_data && ./success.sh 2 sbalzarini-mac-15 openfpm_data"
incardon's avatar
incardon committed
160 161 162 163 164 165
                    }
                  }
                 },

"sb15_SE" : {node ('sbalzarini-mac-15')
                  {
166
                    deleteDir()
incardon's avatar
incardon committed
167
                    env.PATH = "/usr/local/bin:${env.PATH}"
incardon's avatar
incardon committed
168 169 170 171 172 173 174 175 176 177 178
                    
                    int ntry = 5
                    while (ntry != 0)
                    {
                      try {
                        checkout scm
                        ntry = 0
                      }
                      catch (IOException e)
                      {
                        ntry--
179
                        sleep(10)
incardon's avatar
incardon committed
180 181 182
                      }
                    }

incardon's avatar
incardon committed
183 184
                    stage ('build_sb15_se')
                    {
185
                      sh "./build.sh $WORKSPACE $NODE_NAME SE $BRANCH_NAME"
incardon's avatar
incardon committed
186 187 188 189 190
                    }

                    stage ('run_sb15_se')
                    {
                      sh "cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME SE"
incardon's avatar
incardon committed
191
                      sh "cd openfpm_data && ./success.sh 1 sbalzarini-mac-15 openfpm_data \"security enhancements\""
incardon's avatar
incardon committed
192 193 194 195 196 197 198 199
                    }
                  }
                 }



)