Skip to content

Commit

Permalink
Change slave labels and add nightly Jenkinsfile (apache#6957)
Browse files Browse the repository at this point in the history
* Empty commit

* Change slave labels and add nightly Jenkinsfile
  • Loading branch information
lxn2 authored and mli committed Jul 10, 2017
1 parent 88818cd commit 4ba2cf8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
42 changes: 21 additions & 21 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def init_git_win() {

stage("Sanity Check") {
timeout(time: max_time, unit: 'MINUTES') {
node('linux') {
node('mxnetlinux') {
ws('workspace/sanity') {
init_git()
make('lint', 'cpplint rcpplint jnilint')
Expand Down Expand Up @@ -86,7 +86,7 @@ echo ${libs} | sed -e 's/,/ /g' | xargs md5sum

stage('Build') {
parallel 'CPU: Openblas': {
node('linux') {
node('mxnetlinux') {
ws('workspace/build-cpu') {
init_git()
def flag = """ \
Expand All @@ -102,7 +102,7 @@ USE_BLAS=openblas \
}
},
'GPU: CUDA7.5+cuDNN5': {
node('GPU' && 'linux') {
node('mxnetlinux') {
ws('workspace/build-gpu') {
init_git()
def flag = """ \
Expand All @@ -122,15 +122,15 @@ USE_CPP_PACKAGE=1 \
}
},
'Amalgamation': {
node('linux') {
node('mxnetlinux') {
ws('workspace/amalgamation') {
init_git()
make('cpu', '-C amalgamation/ USE_BLAS=openblas MIN=1')
}
}
},
'GPU: MKLML': {
node('GPU' && 'linux') {
node('mxnetlinux') {
ws('workspace/build-mklml') {
init_git()
def flag = """ \
Expand All @@ -151,7 +151,7 @@ USE_CPP_PACKAGE=1 \
}
},
'CPU windows':{
node('windows') {
node('mxnetwindows') {
ws('workspace/build-cpu') {
withEnv(['OpenBLAS_HOME=C:\\mxnet\\openblas', 'OpenCV_DIR=C:\\mxnet\\opencv_vc14', 'CUDA_PATH=C:\\CUDA\\v8.0']) {
init_git_win()
Expand Down Expand Up @@ -181,7 +181,7 @@ del /Q *.7z
}
},
'GPU windows':{
node('windows') {
node('mxnetwindows') {
ws('workspace/build-gpu') {
withEnv(['OpenBLAS_HOME=C:\\mxnet\\openblas', 'OpenCV_DIR=C:\\mxnet\\opencv_vc14', 'CUDA_PATH=C:\\CUDA\\v8.0']) {
init_git_win()
Expand Down Expand Up @@ -232,7 +232,7 @@ def python_gpu_ut(docker_type) {

stage('Unit Test') {
parallel 'Python2/3: CPU': {
node('linux') {
node('mxnetlinux') {
ws('workspace/ut-python-cpu') {
init_git()
unpack_lib('cpu')
Expand All @@ -241,7 +241,7 @@ stage('Unit Test') {
}
},
'Python2/3: GPU': {
node('GPU' && 'linux') {
node('mxnetlinux') {
ws('workspace/ut-python-gpu') {
init_git()
unpack_lib('gpu', mx_lib)
Expand All @@ -250,7 +250,7 @@ stage('Unit Test') {
}
},
'Python2/3: MKLML': {
node('GPU' && 'linux') {
node('mxnetlinux') {
ws('workspace/ut-python-mklml') {
init_git()
unpack_lib('mklml')
Expand All @@ -260,7 +260,7 @@ stage('Unit Test') {
}
},
'Scala: CPU': {
node('linux') {
node('mxnetlinux') {
ws('workspace/ut-scala-cpu') {
init_git()
unpack_lib('cpu')
Expand All @@ -272,7 +272,7 @@ stage('Unit Test') {
}
},
'R: CPU': {
node('linux') {
node('mxnetlinux') {
ws('workspace/ut-r-cpu') {
init_git()
unpack_lib('cpu')
Expand All @@ -287,7 +287,7 @@ stage('Unit Test') {
}
},
'R: GPU': {
node('GPU' && 'linux') {
node('mxnetlinux') {
ws('workspace/ut-r-gpu') {
init_git()
unpack_lib('gpu')
Expand All @@ -300,9 +300,9 @@ stage('Unit Test') {
}
}
}
},
},
'Python2/3: CPU Win':{
node('windows') {
node('mxnetwindows') {
ws('workspace/ut-python-cpu') {
init_git_win()
unstash 'vc14_cpu'
Expand All @@ -322,7 +322,7 @@ C:\\mxnet\\test_cpu.bat"""
}
},
'Python2/3: GPU Win':{
node('windows') {
node('mxnetwindows') {
ws('workspace/ut-python-gpu') {
init_git_win()
unstash 'vc14_gpu'
Expand All @@ -346,7 +346,7 @@ C:\\mxnet\\test_gpu.bat"""

stage('Integration Test') {
parallel 'Python': {
node('GPU' && 'linux') {
node('mxnetlinux') {
ws('workspace/it-python-gpu') {
init_git()
unpack_lib('gpu')
Expand All @@ -357,7 +357,7 @@ stage('Integration Test') {
}
},
'Caffe': {
node('GPU' && 'linux') {
node('mxnetlinux') {
ws('workspace/it-caffe') {
init_git()
unpack_lib('gpu')
Expand All @@ -368,7 +368,7 @@ stage('Integration Test') {
}
},
'cpp-package': {
node('GPU' && 'linux') {
node('mxnetlinux') {
ws('workspace/it-cpp-package') {
init_git()
unpack_lib('gpu')
Expand All @@ -382,12 +382,12 @@ stage('Integration Test') {
}

stage('Deploy') {
node('linux') {
node('mxnetlinux') {
ws('workspace/docs') {
if (env.BRANCH_NAME == "master") {
init_git()
sh "make docs"
}
}
}
}
}
10 changes: 10 additions & 0 deletions tests/nightly/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// -*- mode: groovy -*-
// Jenkins pipeline
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
// Runs nightly builds

stage("Hello World") {
node('mxnetlinux') {
sh "echo 'Hello World'"
}
}

0 comments on commit 4ba2cf8

Please sign in to comment.