blob: 1bcfbf4948604115b2d46cd4d3199b777e635ff4 [file] [log] [blame]
Ray Milkeycf3e3682017-03-14 16:56:18 -07001#!groovy
2
Ray Milkey19793a32017-03-13 17:17:12 -07003pipeline {
4 agent any
Ray Milkey1304e212017-03-14 10:12:01 -07005
Ray Milkey19793a32017-03-13 17:17:12 -07006 stages {
7 stage('build') {
8 steps {
Ray Milkey52e7d6e2017-03-14 10:42:38 -07009 sh '''#!/bin/bash -l
Ray Milkeyc94df632017-03-14 11:36:39 -070010 ONOS_ROOT=`pwd`
Ray Milkeyf4a34912017-03-14 11:17:29 -070011 source tools/build/envDefaults
12 onos-buck build onos
Ray Milkey52e7d6e2017-03-14 10:42:38 -070013 '''
Ray Milkey19793a32017-03-13 17:17:12 -070014 }
15 }
Ray Milkey7c283692017-03-14 12:42:42 -070016
17 stage('unit-test') {
18 steps {
19 sh '''#!/bin/bash -l
20 ONOS_ROOT=`pwd`
21 source tools/build/envDefaults
22 onos-buck test
23 '''
24 }
Ray Milkeye89cfd22017-03-14 12:39:11 -070025 }
Ray Milkeycf3e3682017-03-14 16:56:18 -070026
27 stage('docker-image') {
28 steps {
29 sh '''#!/bin/bash -l
30 ONOS_ROOT=`pwd`
31 source tools/build/envDefaults
32 docker build -t onosproject/onos-test-docker .
33 '''
34 }
35 }
Ray Milkey65639712017-03-14 12:28:21 -070036 }
37
Ray Milkey19793a32017-03-13 17:17:12 -070038}