You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2019/07/29 22:08:38 UTC

[maven] 02/02: try to archive mng-4747 output

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch MAVEN_OPTS
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 421255fb02da49ed0c8a54af8d205c4cfb61ab7e
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Tue Jul 30 00:08:31 2019 +0200

    try to archive mng-4747 output
---
 Jenkinsfile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 81254d9..964cd2b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -112,6 +112,7 @@ for (String os in runITsOses) {
                                 bat "${cmd}"
                             }
                         }
+                        archiveDirs(taskContext.archives, "${WORK_DIR}/core-it-suite/target/test-classes/mng-4747")
                         deleteDir() // clean up after ourselves to reduce disk space
                     }
                 }
@@ -156,3 +157,13 @@ parallel(runITsTasks)
         jenkinsNotify()      
     }    
 }
+
+def archiveDirs(archives, stageDir) {
+  if (archives != null) {
+    dir(stageDir) {
+      archives.each { archivePrefix, pathToContent ->
+	    zip(zipFile: "${archivePrefix}-${stageDir}.zip", dir: pathToContent, archive: true)
+      }
+	}
+  }
+}