Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 1 | pipeline { |
2 | agent any | ||||
Ray Milkey | 1304e21 | 2017-03-14 10:12:01 -0700 | [diff] [blame] | 3 | |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 4 | stages { |
5 | stage('build') { | ||||
6 | steps { | ||||
Ray Milkey | 52e7d6e | 2017-03-14 10:42:38 -0700 | [diff] [blame] | 7 | sh '''#!/bin/bash -l |
Ray Milkey | c94df63 | 2017-03-14 11:36:39 -0700 | [diff] [blame] | 8 | ONOS_ROOT=`pwd` |
Ray Milkey | f4a3491 | 2017-03-14 11:17:29 -0700 | [diff] [blame] | 9 | source tools/build/envDefaults |
10 | onos-buck build onos | ||||
Ray Milkey | 52e7d6e | 2017-03-14 10:42:38 -0700 | [diff] [blame] | 11 | ''' |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 12 | } |
13 | } | ||||
14 | } | ||||
Ray Milkey | 6563971 | 2017-03-14 12:28:21 -0700 | [diff] [blame^] | 15 | stage('unit-test') { |
16 | steps { | ||||
17 | sh '''#!/bin/bash -l | ||||
18 | ONOS_ROOT=`pwd` | ||||
19 | source tools/build/envDefaults | ||||
20 | onos-buck test | ||||
21 | ''' | ||||
22 | } | ||||
23 | |||||
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 24 | } |