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 { |
| 4 | agent any |
Ray Milkey | 1304e21 | 2017-03-14 10:12:01 -0700 | [diff] [blame] | 5 | |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 6 | stages { |
| 7 | stage('build') { |
| 8 | steps { |
Ray Milkey | 52e7d6e | 2017-03-14 10:42:38 -0700 | [diff] [blame] | 9 | sh '''#!/bin/bash -l |
Ray Milkey | c94df63 | 2017-03-14 11:36:39 -0700 | [diff] [blame] | 10 | ONOS_ROOT=`pwd` |
Ray Milkey | f4a3491 | 2017-03-14 11:17:29 -0700 | [diff] [blame] | 11 | source tools/build/envDefaults |
| 12 | onos-buck build onos |
Ray Milkey | 52e7d6e | 2017-03-14 10:42:38 -0700 | [diff] [blame] | 13 | ''' |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 14 | } |
| 15 | } |
Ray Milkey | 7c28369 | 2017-03-14 12:42:42 -0700 | [diff] [blame] | 16 | |
| 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 Milkey | e89cfd2 | 2017-03-14 12:39:11 -0700 | [diff] [blame] | 25 | } |
Ray Milkey | cf3e368 | 2017-03-14 16:56:18 -0700 | [diff] [blame] | 26 | |
| 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 Milkey | 6563971 | 2017-03-14 12:28:21 -0700 | [diff] [blame] | 36 | } |
| 37 | |
Ray Milkey | 19793a3 | 2017-03-13 17:17:12 -0700 | [diff] [blame] | 38 | } |