Jenkinsfile: clear directory on every node before starting to build

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

Branch: refs/heads/feature/RollingFileAppender-NG
Commit: 398e16e50affecb1459a812a91e53b5fed2c052e
Parents: ab1f31e
Author: Dominik Psenner <[email protected]>
Authored: Mon Jul 3 23:19:42 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Mon Jul 3 23:19:42 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/398e16e5/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 6462278..800496d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -39,6 +39,7 @@ pipeline {
                                NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
+                               deleteDir()
                                checkout scm
                                bat "${NANT_BIN} -t:net-3.5 
-buildfile:log4net.build compile-net-3.5"
                                stash includes: 'bin/**/*.*', name: 
'net-3.5-assemblies'
@@ -50,6 +51,7 @@ pipeline {
                                NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
+                               deleteDir()
                                checkout scm
                                bat "${NANT_BIN} -t:net-3.5 
-buildfile:log4net.build compile-net-3.5-cp"
                                stash includes: 'bin/**/*.*', name: 
'net-3.5-cp-assemblies'
@@ -61,6 +63,7 @@ pipeline {
                                NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
+                               deleteDir()
                                checkout scm
                                bat "${NANT_BIN} -buildfile:log4net.build 
compile-net-4.0"
                                stash includes: 'bin/**/*.*', name: 
'net-4.0-assemblies'
@@ -72,6 +75,7 @@ pipeline {
                                NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
+                               deleteDir()
                                checkout scm
                                bat "${NANT_BIN} -buildfile:log4net.build 
compile-net-4.0-cp"
                                stash includes: 'bin/**/*.*', name: 
'net-4.0-cp-assemblies'
@@ -83,6 +87,7 @@ pipeline {
                                NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
+                               deleteDir()
                                checkout scm
                                bat "${NANT_BIN} -buildfile:log4net.build 
compile-net-4.5"
                                stash includes: 'bin/**/*.*', name: 
'net-4.5-assemblies'
@@ -158,6 +163,7 @@ pipeline {
                                NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
+                               deleteDir()
                                checkout scm
                                bat "${NANT_BIN} -buildfile:log4net.build 
generate-site"
                                stash includes: 'target/site/**/*.*', name: 
'site'

Reply via email to