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

olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c07051  cleanup workspace
5c07051 is described below

commit 5c07051c31920fc869a8cd37ed181df30ab9c119
Author: olivier lamy <[email protected]>
AuthorDate: Sun Dec 30 13:32:27 2018 +1000

    cleanup workspace
    
    Signed-off-by: olivier lamy <[email protected]>
---
 vars/asfStandardBuild.groovy | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/vars/asfStandardBuild.groovy b/vars/asfStandardBuild.groovy
index db08a97..df60d6d 100644
--- a/vars/asfStandardBuild.groovy
+++ b/vars/asfStandardBuild.groovy
@@ -51,8 +51,30 @@ def call(Map params = [:]) {
         }
       }
     }
+    post {
+      always {
+        cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: 
'.repository', type: 'EXCLUDE']]
+      }
+      unstable {
+        script{
+          asfStandardBuild.notifyBuild( "Unstable Build ")
+        }
+      }
+      failure {
+        script{
+          asfStandardBuild.notifyBuild( "Error in redback core build ")
+        }
+      }
+      success {
+        script {
+          def previousResult = currentBuild.previousBuild?.result
+          if (previousResult && !currentBuild.resultIsWorseOrEqualTo( 
previousResult ) ) {
+            asfStandardBuild.notifyBuild( "Fixed" )
+          }
+        }
+      }
+    }
   }
-
 }
 
 /**

Reply via email to