You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2018/12/28 09:48:14 UTC

[incubator-plc4x] branch develop updated: Added a workspace-wipe at the end of a successful build.

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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8666051  Added a workspace-wipe at the end of a successful build.
8666051 is described below

commit 8666051d781c7096769890501f7f529012f4eefd
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri Dec 28 10:48:09 2018 +0100

    Added a workspace-wipe at the end of a successful build.
---
 Jenkinsfile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index a736eb3..17ba65e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -253,6 +253,9 @@ Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANC
 
         // Send an email, if the last build was not successful and this one is.
         success {
+            // Cleanup the build directory if the build was successful
+            // (in this cae we probably don't have to do any post-build analysis)
+            deleteDir()
             script {
                 if ((env.BRANCH_NAME == "develop") && (currentBuild.previousBuild != null) && (currentBuild.previousBuild.result != 'SUCCESS')) {
                     emailext (