Ray Milkey | cf3e368 | 2017-03-14 16:56:18 -0700 | [diff] [blame] | 1 | #!groovy |
| 2 | |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 3 | pipeline { |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 4 | |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 5 | agent any |
Ray Milkey | 1304e21 | 2017-03-14 10:12:01 -0700 | [diff] [blame] | 6 | |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 7 | stages { |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 8 | stage('pull') { |
| 9 | steps { |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 10 | git url: 'https://gerrit.onosproject.org/onos' |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 11 | } |
| 12 | } |
| 13 | |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 14 | stage('build') { |
| 15 | steps { |
Ray Milkey | 52e7d6e | 2017-03-14 10:42:38 -0700 | [diff] [blame] | 16 | sh '''#!/bin/bash -l |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 17 | ONOS_ROOT=`pwd` |
| 18 | source tools/build/envDefaults |
| 19 | onos-buck build onos |
Ray Milkey | 52e7d6e | 2017-03-14 10:42:38 -0700 | [diff] [blame] | 20 | ''' |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 21 | } |
| 22 | } |
Ray Milkey | 7c28369 | 2017-03-14 12:42:42 -0700 | [diff] [blame] | 23 | |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 24 | stage('test') { |
Ray Milkey | 7c28369 | 2017-03-14 12:42:42 -0700 | [diff] [blame] | 25 | steps { |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 26 | parallel ( |
| 27 | "unit-tests": { |
| 28 | sh '''#!/bin/bash -l |
| 29 | ONOS_ROOT=`pwd` |
| 30 | source tools/build/envDefaults |
| 31 | onos-buck test |
| 32 | ''' |
| 33 | }, |
| 34 | "javadocs": { |
| 35 | sh '''#!/bin/bash -l |
| 36 | ONOS_ROOT=`pwd` |
| 37 | source tools/build/envDefaults |
| 38 | onos-buck build //docs:external //docs:internal --show-output |
| 39 | ''' |
| 40 | }, |
| 41 | "docker-image": { |
| 42 | sh '''#!/bin/bash -l |
| 43 | ONOS_ROOT=`pwd` |
| 44 | source tools/build/envDefaults |
| 45 | docker build -t onosproject/onos-test-docker . |
| 46 | ''' |
| 47 | }, |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 48 | ) |
Ray Milkey | cf3e368 | 2017-03-14 16:56:18 -0700 | [diff] [blame] | 49 | } |
| 50 | } |
Ray Milkey | 6563971 | 2017-03-14 12:28:21 -0700 | [diff] [blame] | 51 | } |
| 52 | |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 53 | } |
Ray Milkey | d7200da | 2017-03-29 16:25:13 -0700 | [diff] [blame] | 54 | |