Jenkinsfile: stash mono assemblies instead of archiving them directly

Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/42b7d582
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/42b7d582
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/42b7d582

Branch: refs/heads/develop
Commit: 42b7d5829047b186337e458449d202fc82a051f2
Parents: b50c677
Author: Dominik Psenner <[email protected]>
Authored: Mon Jul 3 13:57:46 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Mon Jul 3 13:57:46 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/42b7d582/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 031af40..44defa0 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -60,7 +60,7 @@ pipeline {
                        }
                        steps {
                                sh "nant -t:mono-2.0 -buildfile:log4net.build 
compile-mono-2.0"
-                               archive 'bin/**/*.*'
+                               stash includes: 'bin/**/*.*', name: 
'mono-2.0-assemblies'
                        }
                }
                stage('build mono-3.5') {
@@ -72,7 +72,7 @@ pipeline {
                        }
                        steps {
                                sh "nant -t:mono-3.5 -buildfile:log4net.build 
compile-mono-3.5"
-                               archive 'bin/**/*.*'
+                               stash includes: 'bin/**/*.*', name: 
'mono-3.5-assemblies'
                        }
                }
                stage('build mono-4.0') {
@@ -84,13 +84,14 @@ pipeline {
                        }
                        steps {
                                sh "nant -t:mono-4.0 -buildfile:log4net.build 
compile-mono-4.0"
-                               archive 'bin/**/*.*'
+                               stash includes: 'bin/**/*.*', name: 
'mono-4.0-assemblies'
                        }
                }
-               // TODO: testing needs to be refactored
-               stage('test on Windows') {
+               stage('prepare package') {
                        steps {
-                               bat "${NAnt} -buildfile:tests\\nant.build"
+                               unstash 'mono-2.0-assemblies'
+                               unstash 'mono-3.5-assemblies'
+                               unstash 'mono-4.0-assemblies'
                        }
                }
                stage('build site') {
@@ -98,6 +99,12 @@ pipeline {
                                bat "${NAnt} -buildfile:log4net.build 
generate-site"
                        }
                }
+               // TODO: testing needs to be refactored
+               stage('test on Windows') {
+                       steps {
+                               bat "${NAnt} -buildfile:tests\\nant.build"
+                       }
+               }
                stage('deploy site') {
                        when {
                                branch 'master'

Reply via email to