This is an automated email from the ASF dual-hosted git repository.
mck pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git
The following commit(s) were added to refs/heads/master by this push:
new 6b3c726 In Jenkins, don't do a full docker system prune if
cassandra-artifact.sh or jenkinscommand.sh is running
6b3c726 is described below
commit 6b3c7266f340b7a80eda701a8cf43a0efe08ecab
Author: Mick Semb Wever <[email protected]>
AuthorDate: Thu Oct 1 11:07:42 2020 +0200
In Jenkins, don't do a full docker system prune if cassandra-artifact.sh or
jenkinscommand.sh is running
The cassandra-artifact.sh recently added docker usage when adding
cassandra-*-packaging.sh (deb|rpm).
This have infrequently crashed with `unknown parent image ID sha256:…`
patch by Mick Semb Wever; reviewed by Berenguer Blasi
---
jenkins-dsl/cassandra_job_dsl_seed.groovy | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/jenkins-dsl/cassandra_job_dsl_seed.groovy
b/jenkins-dsl/cassandra_job_dsl_seed.groovy
index 7684f32..1927427 100644
--- a/jenkins-dsl/cassandra_job_dsl_seed.groovy
+++ b/jenkins-dsl/cassandra_job_dsl_seed.groovy
@@ -318,9 +318,10 @@ matrixJob('Cassandra-template-dtest-matrix') {
}
}
postBuildTask {
+ // the pgrep needs to catch any other build/process that is using
docker
task('.', """
echo "Cleaning project…"; git clean -xdff ;
- echo "Pruning docker…" ; if pgrep -af jenkinscommand.sh; then
docker system prune -f --filter 'until=${maxJobHours}h'; else docker system
prune -f --volumes ; fi;
+ echo "Pruning docker…" ; if pgrep -af
"cassandra-artifacts.sh|jenkinscommand.sh"; then docker system prune -f
--filter 'until=${maxJobHours}h'; else docker system prune -f --volumes ; fi;
echo "Reporting disk usage…"; df -h ; du -hs ../* ; du -hs
../../* ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
@@ -824,9 +825,10 @@ dtestTargets.each {
}
archiveJunit('nosetests.xml')
postBuildTask {
+ // the pgrep needs to catch any other build/process that is
using docker
task('.', """
echo "Cleaning project…" ; git clean -xdff ;
- echo "Pruning docker…" ; if pgrep -af jenkinscommand.sh;
then docker system prune -f --filter "until=${maxJobHours}h"; else docker
system prune -f --volumes ; fi;
+ echo "Pruning docker…" ; if pgrep -af
"cassandra-artifacts.sh|jenkinscommand.sh"; then docker system prune -f
--filter "until=${maxJobHours}h"; else docker system prune -f --volumes ; fi;
echo "Reporting disk usage…"; df -h ; du -hs ../* ; du -hs
../../* ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]