blob: 454e3b77673419537f5e57c89cb19a13a4a48fee [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 '''
22 }
23
Ray Milkey19793a32017-03-13 17:17:12 -070024}