blob: 0ac8da30ad098579bf2e62f247fc75d644c0cda3 [file] [log] [blame]
Matteo Scandoloe7425c52017-08-14 17:49:31 -07001// 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 Bavier30767cd2016-12-23 16:32:18 -050015node ('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 Baviera8049272016-11-21 14:52:21 -050020
Andy Bavier30767cd2016-12-23 16:32:18 -050021 stage 'Run end-to-end tests'
Andy Bavier392a40c2017-02-12 10:30:32 -080022 sh "~/cord/build/scripts/run-tests.sh"
Andy Baviera8049272016-11-21 14:52:21 -050023
Andy Bavier30767cd2016-12-23 16:32:18 -050024 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 Baviera8049272016-11-21 14:52:21 -050030
Andy Bavier30767cd2016-12-23 16:32:18 -050031 echo "RESULT: ${currentBuild.result}"
Andy Baviera8049272016-11-21 14:52:21 -050032}