forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JenkinsfileEdge
62 lines (58 loc) · 2.19 KB
/
JenkinsfileEdge
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// -*- mode: groovy -*-
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
// This Jenkinsfile is to run jobs on the physical Edge Lab in Berlin
armv7_wheel = 'build/mxnet-*-py2.py3-none-any.whl'
node('mxnetlinux-cpu') {
// Loading the utilities requires a node context unfortunately
checkout scm
utils = load('ci/Jenkinsfile_utils.groovy')
}
utils.assign_node_labels(linux_cpu: 'mxnetlinux-cpu', linux_gpu: 'mxnetlinux-gpu', linux_gpu_p3: 'mxnetlinux-gpu-p3', windows_cpu: 'mxnetwindows-cpu', windows_gpu: 'mxnetwindows-gpu', raspberry_pi_3: 'raspberry-pi-3')
utils.main_wrapper(
core_logic: {
stage('Build') {
parallel 'ARMv7': {
node(NODE_LINUX_CPU) {
ws('workspace/build-armv7') {
utils.init_git()
utils.docker_run('armv7', 'build_armv7', false)
utils.pack_lib('armv7', armv7_wheel)
}
}
}
}
stage('Tests'){
parallel 'Raspberry Pi 3 - Python 3': {
node(NODE_RASPBERRY_PI_3) {
ws('workspace/tests_raspberry_pi_3') {
utils.init_git()
utils.unpack_and_init('armv7', armv7_wheel)
utils.docker_run('armv7_raspberry_pi_3', 'raspberry_test_python_3', false)
}
}
}
}
}
,
failure_handler: {
if (currentBuild.result == "FAILURE") {
emailext body: 'Nightly tests for MXNet branch ${BRANCH_NAME} failed. Please view the build at ${BUILD_URL}', replyTo: '${EMAIL}', subject: '[NIGHTLY TEST FAILED] build ${BUILD_NUMBER}', to: '${EMAIL}'
}
}
)