Andy Bavier | 30767cd | 2016-12-23 16:32:18 -0500 | [diff] [blame] | 1 | node ('ciab-build') { |
| 2 | try { |
| 3 | stage 'Run CORD-in-a-Box script' |
| 4 | sh "curl -o cord-in-a-box.sh https://raw.githubusercontent.com/opencord/cord/master/scripts/cord-in-a-box.sh" |
| 5 | sh "bash ./cord-in-a-box.sh -c" |
Andy Bavier | a804927 | 2016-11-21 14:52:21 -0500 | [diff] [blame] | 6 | |
Andy Bavier | 30767cd | 2016-12-23 16:32:18 -0500 | [diff] [blame] | 7 | stage 'Run end-to-end tests' |
| 8 | sh "~/opencord/build/scripts/run-tests.sh" |
Andy Bavier | a804927 | 2016-11-21 14:52:21 -0500 | [diff] [blame] | 9 | |
Andy Bavier | 30767cd | 2016-12-23 16:32:18 -0500 | [diff] [blame] | 10 | currentBuild.result = 'SUCCESS' |
| 11 | } catch (err) { |
| 12 | currentBuild.result = 'FAILURE' |
| 13 | step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'cord-dev@opencord.org', sendToIndividuals: false]) |
| 14 | } finally { |
| 15 | } |
Andy Bavier | a804927 | 2016-11-21 14:52:21 -0500 | [diff] [blame] | 16 | |
Andy Bavier | 30767cd | 2016-12-23 16:32:18 -0500 | [diff] [blame] | 17 | echo "RESULT: ${currentBuild.result}" |
Andy Bavier | a804927 | 2016-11-21 14:52:21 -0500 | [diff] [blame] | 18 | } |