You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by lx...@apache.org on 2017/06/30 00:12:11 UTC

incubator-mxnet-test git commit: newgrp jenkins

Repository: incubator-mxnet-test
Updated Branches:
  refs/heads/master 9014cc90f -> 235ca9070


newgrp jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-mxnet-test/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mxnet-test/commit/235ca907
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mxnet-test/tree/235ca907
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mxnet-test/diff/235ca907

Branch: refs/heads/master
Commit: 235ca9070e2e370b1195d56b336d9445f639715c
Parents: 9014cc9
Author: Nguyen <ly...@amazon.com>
Authored: Thu Jun 29 17:11:59 2017 -0700
Committer: Nguyen <ly...@amazon.com>
Committed: Thu Jun 29 17:11:59 2017 -0700

----------------------------------------------------------------------
 Jenkinsfile | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mxnet-test/blob/235ca907/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 164eb96..11d0dd0 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -56,9 +56,11 @@ stage("Sanity Check") {
 def make(docker_type, make_flag) {
   timeout(time: max_time, unit: 'MINUTES') {
     try {
+      sh "newgrp docker"
       sh "${docker_run} ${docker_type} make ${make_flag}"
     } catch (exc) {
       echo 'Incremental compilation failed. Fall back to build from scratch'
+      sh "newgrp docker"
       sh "${docker_run} ${docker_type} sudo make clean"
       sh "${docker_run} ${docker_type} make ${make_flag}"
     }
@@ -155,6 +157,7 @@ USE_CPP_PACKAGE=1             \
 // Python unittest for CPU
 def python_ut(docker_type) {
   timeout(time: max_time, unit: 'MINUTES') {
+    sh "newgrp docker"
     sh "${docker_run} ${docker_type} PYTHONPATH=./python/ nosetests --with-timer --verbose tests/python/unittest"
     sh "${docker_run} ${docker_type} PYTHONPATH=./python/ nosetests-3.4 --with-timer --verbose tests/python/unittest"
     sh "${docker_run} ${docker_type} PYTHONPATH=./python/ nosetests --with-timer --verbose tests/python/train"
@@ -165,6 +168,7 @@ def python_ut(docker_type) {
 // both CPU and GPU
 def python_gpu_ut(docker_type) {
   timeout(time: max_time, unit: 'MINUTES') {
+    sh "newgrp docker"
     sh "${docker_run} ${docker_type} PYTHONPATH=./python/ nosetests --with-timer --verbose tests/python/gpu"
     sh "${docker_run} ${docker_type} PYTHONPATH=./python/ nosetests-3.4 --with-timer --verbose tests/python/gpu"
   }
@@ -205,6 +209,7 @@ stage('Unit Test') {
         init_git()
         unpack_lib('cpu')
         timeout(time: max_time, unit: 'MINUTES') {
+          sh "newgrp docker"
           sh "${docker_run} cpu make scalapkg USE_BLAS=openblas"
           sh "${docker_run} cpu make scalatest USE_BLAS=openblas"
         }
@@ -221,6 +226,7 @@ stage('Integration Test') {
         init_git()
         unpack_lib('gpu')
         timeout(time: max_time, unit: 'MINUTES') {
+          sh "newgrp docker"
           sh "${docker_run} gpu PYTHONPATH=./python/ python example/image-classification/test_score.py"
         }
       }
@@ -232,6 +238,7 @@ stage('Integration Test') {
         init_git()
         unpack_lib('gpu')
         timeout(time: max_time, unit: 'MINUTES') {
+          sh "newgrp docker"
           sh "${docker_run} caffe_gpu PYTHONPATH=/caffe/python:./python python tools/caffe_converter/test_converter.py"
         }
       }
@@ -244,6 +251,7 @@ stage('Integration Test') {
         unpack_lib('gpu')
         unstash 'cpp_test_score'
         timeout(time: max_time, unit: 'MINUTES') {
+          sh "newgrp docker"
           sh "${docker_run} gpu cpp-package/tests/ci_test.sh"
         }
       }