Matteo Scandolo | e7425c5 | 2017-08-14 17:49:31 -0700 | [diff] [blame] | 1 | // Copyright 2017-present Open Networking Foundation |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Andy Bavier | 30767cd | 2016-12-23 16:32:18 -0500 | [diff] [blame] | 15 | node ('ciab-build') { |
| 16 | try { |
| 17 | stage 'Run CORD-in-a-Box script' |
| 18 | sh "curl -o cord-in-a-box.sh https://raw.githubusercontent.com/opencord/cord/master/scripts/cord-in-a-box.sh" |
| 19 | sh "bash ./cord-in-a-box.sh -c" |
Andy Bavier | a804927 | 2016-11-21 14:52:21 -0500 | [diff] [blame] | 20 | |
Andy Bavier | 30767cd | 2016-12-23 16:32:18 -0500 | [diff] [blame] | 21 | stage 'Run end-to-end tests' |
Andy Bavier | 392a40c | 2017-02-12 10:30:32 -0800 | [diff] [blame] | 22 | sh "~/cord/build/scripts/run-tests.sh" |
Andy Bavier | a804927 | 2016-11-21 14:52:21 -0500 | [diff] [blame] | 23 | |
Andy Bavier | 30767cd | 2016-12-23 16:32:18 -0500 | [diff] [blame] | 24 | currentBuild.result = 'SUCCESS' |
| 25 | } catch (err) { |
| 26 | currentBuild.result = 'FAILURE' |
| 27 | step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'cord-dev@opencord.org', sendToIndividuals: false]) |
| 28 | } finally { |
| 29 | } |
Andy Bavier | a804927 | 2016-11-21 14:52:21 -0500 | [diff] [blame] | 30 | |
Andy Bavier | 30767cd | 2016-12-23 16:32:18 -0500 | [diff] [blame] | 31 | echo "RESULT: ${currentBuild.result}" |
Andy Bavier | a804927 | 2016-11-21 14:52:21 -0500 | [diff] [blame] | 32 | } |