blob: 64b62f24aa7e67e1040aa1a9f53456980c33afc9 [file] [log] [blame]
Ray Milkey38c16c52017-10-26 12:05:45 -07001#!groovy
2
3pipeline {
4
5 agent any
6
7 stages {
8
9 stage('build') {
10 steps {
11 sh '''#!/bin/bash -l
12 ONOS_ROOT=`pwd`
13 source tools/build/envDefaults
14 onos-buck build onos
15 '''
16 }
17 }
18
19 stage('test') {
20 steps {
21 parallel (
22 "unit-tests": {
23 sh '''#!/bin/bash -l
24 ONOS_ROOT=`pwd`
25 source tools/build/envDefaults
26 onos-buck test
27 '''
28 },
29 "javadocs": {
30 sh '''#!/bin/bash -l
31 ONOS_ROOT=`pwd`
32 source tools/build/envDefaults
33 onos-buck build //docs:external //docs:internal --show-output
34 '''
35 },
36 )
37 }
38 }
39 }
40
41}
42