blob: 7638a2a8abf032eddbd6f5612391f64f837fcacf [file] [log] [blame]
Ray Milkey38c16c52017-10-26 12:05:45 -07001#!groovy
2
3pipeline {
4
Ray Milkey8d05a4c2017-11-29 13:59:42 -08005 agent { node { label 'ubuntu16.04-basebuild-8c-15g' } }
Ray Milkey38c16c52017-10-26 12:05:45 -07006
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
Ray Milkey38c16c52017-10-26 12:05:45 -070027 onos-buck build //docs:external //docs:internal --show-output
28 '''
29 },
Ray Milkey017fe3e2017-11-29 14:50:22 -080030 // additional steps here (STC, docker buld, etc)
Ray Milkey38c16c52017-10-26 12:05:45 -070031 )
32 }
33 }
34 }
35
36}
37