blob: a8d92acf239afe87ed368d2dcb4bcc074c5eddac [file] [log] [blame]
Ray Milkey19793a32017-03-13 17:17:12 -07001pipeline {
2 agent any
Ray Milkey1304e212017-03-14 10:12:01 -07003
Ray Milkey19793a32017-03-13 17:17:12 -07004 stages {
5 stage('build') {
6 steps {
Ray Milkey52e7d6e2017-03-14 10:42:38 -07007 sh '''#!/bin/bash -l
Ray Milkeyc94df632017-03-14 11:36:39 -07008 ONOS_ROOT=`pwd`
Ray Milkeyf4a34912017-03-14 11:17:29 -07009 source tools/build/envDefaults
10 onos-buck build onos
Ray Milkey52e7d6e2017-03-14 10:42:38 -070011 '''
Ray Milkey19793a32017-03-13 17:17:12 -070012 }
13 }
14 }
Ray Milkey65639712017-03-14 12:28:21 -070015 stage('unit-test') {
16 steps {
17 sh '''#!/bin/bash -l
18 ONOS_ROOT=`pwd`
19 source tools/build/envDefaults
20 onos-buck test
21 '''
Ray Milkeye89cfd22017-03-14 12:39:11 -070022 }
Ray Milkey65639712017-03-14 12:28:21 -070023 }
24
Ray Milkey19793a32017-03-13 17:17:12 -070025}