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

mck pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 45b5c26  fix postBuildTask needs to come after after publishOverSsh
45b5c26 is described below

commit 45b5c26f4a9ece424bc0e287bb86019df54bc436
Author: Mick Semb Wever <[email protected]>
AuthorDate: Sat Mar 27 22:29:05 2021 +0100

    fix postBuildTask needs to come after after publishOverSsh
---
 jenkins-dsl/cassandra_job_dsl_seed.groovy | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/jenkins-dsl/cassandra_job_dsl_seed.groovy 
b/jenkins-dsl/cassandra_job_dsl_seed.groovy
index f8fb3e9..437924f 100644
--- a/jenkins-dsl/cassandra_job_dsl_seed.groovy
+++ b/jenkins-dsl/cassandra_job_dsl_seed.groovy
@@ -166,16 +166,6 @@ matrixJob('Cassandra-template-artifacts') {
                 }
             }
         }
-        postBuildTask {
-            task('.', """
-                echo "Cleaning project…"; git clean -xdff ;
-                echo "Pruning docker…" ; docker system prune --all --force 
--filter "until=${maxJobHours}h"  ;
-                echo "Reporting disk usage…"; df -h ;
-                echo "Cleaning tmp…";
-                find . -type d -name tmp -delete 2>/dev/null ;
-                find /tmp -type f -atime +2 -user jenkins -and -not -exec 
fuser -s {} ';' -and -delete 2>/dev/null
-            """)
-        }
     }
 }
 
@@ -412,6 +402,16 @@ cassandraBranches.each {
                 }
                 failOnError(false)
             }
+            postBuildTask {
+                task('.', """
+                    echo "Cleaning project…"; git clean -xdff ;
+                    echo "Pruning docker…" ; docker system prune --all --force 
--filter "until=${maxJobHours}h"  ;
+                    echo "Reporting disk usage…"; df -h ;
+                    echo "Cleaning tmp…";
+                    find . -type d -name tmp -delete 2>/dev/null ;
+                    find /tmp -type f -atime +2 -user jenkins -and -not -exec 
fuser -s {} ';' -and -delete 2>/dev/null
+                """)
+            }
         }
     }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to