You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/01/02 23:46:36 UTC

[GitHub] zachgk commented on a change in pull request #13450: [MXNET-862] Basic maven jenkins pipeline

zachgk commented on a change in pull request #13450: [MXNET-862] Basic maven jenkins pipeline
URL: https://github.com/apache/incubator-mxnet/pull/13450#discussion_r244885289
 
 

 ##########
 File path: ci/Jenkinsfile_utils.groovy
 ##########
 @@ -18,18 +18,25 @@
 // under the License.
 
 // initialize source codes
-def init_git() {
+// Clean - 0: None, 1: xdf, 2: xdff
+def init_git(clean=2) {
   deleteDir()
   retry(5) {
     try {
       // Make sure wait long enough for api.github.com request quota. Important: Don't increase the amount of
       // retries as this will increase the amount of requests and worsen the throttling
       timeout(time: 15, unit: 'MINUTES') {
         checkout scm
-        sh 'git clean -xdff'
+        if(clean == 0)
+          cleanCmd = 'git status'
+        else if(clean == 1)
+          cleanCmd = 'git clean -xdf'
+        else if(clean == 2)
+          cleanCmd = 'git clean -xdff'
+        sh cleanCmd
 
 Review comment:
   Actually, I can remove this because we are no longer going to use the maven-release-plugin following updates as part of #13626

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services