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 d981647 Revert 6bffb4b "Use the jenkins agent API to identify when
the agent is idle"
d981647 is described below
commit d981647b35a345bbbbf095400b9c2dff2d2b3147
Author: Mick Semb Wever <[email protected]>
AuthorDate: Wed Apr 14 09:02:02 2021 +0200
Revert 6bffb4b "Use the jenkins agent API to identify when the agent is
idle"
The call to the agent API is called from a job on that agent, so the result
is never idle.
Lots of agents filled up their disk this week, from docker volumes not
getting pruned.
---
jenkins-dsl/cassandra_job_dsl_seed.groovy | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/jenkins-dsl/cassandra_job_dsl_seed.groovy
b/jenkins-dsl/cassandra_job_dsl_seed.groovy
index 3460ff2..a0900bb 100644
--- a/jenkins-dsl/cassandra_job_dsl_seed.groovy
+++ b/jenkins-dsl/cassandra_job_dsl_seed.groovy
@@ -406,7 +406,7 @@ cassandraBranches.each {
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Pruning docker…" ;
- if `curl -s
"\${JENKINS_URL}/computer/\${NODE_NAME}/api/json?pretty=true" | grep 'idle' |
awk -F' : ' '{print \$2}' | cut -d',' -f1` ; then docker system prune --all
--force --volumes ; else docker system prune --all --force --filter
"until=${maxJobHours}h" ; fi;
+ if pgrep -af "cassandra-builds/build-scripts" ; then
docker system prune --all --force --filter "until=${maxJobHours}h"docker system
prune --all --force --volumes ; else ; fi;
echo "Reporting disk usage…"; df -h ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
@@ -492,7 +492,7 @@ cassandraBranches.each {
task('.', """
echo "Cleaning project…"; git clean -xdff -e
build/test/jmh-result.json ;
echo "Pruning docker…" ;
- if `curl -s
"\${JENKINS_URL}/computer/\${NODE_NAME}/api/json?pretty=true" | grep 'idle' |
awk -F' : ' '{print \$2}' | cut -d',' -f1` ; then docker system prune --all
--force --volumes ; else docker system prune --all --force --filter
"until=${maxJobHours}h" ; fi;
+ if pgrep -af "cassandra-builds/build-scripts" ;
then docker system prune --all --force --filter "until=${maxJobHours}h"docker
system prune --all --force --volumes ; else ; fi;
echo "Reporting disk usage…"; du -xm / 2>/dev/null
| sort -rn | head -n 30 ; df -h ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
@@ -584,7 +584,7 @@ cassandraBranches.each {
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Pruning docker…" ;
- if `curl -s
"\${JENKINS_URL}/computer/\${NODE_NAME}/api/json?pretty=true" | grep 'idle' |
awk -F' : ' '{print \$2}' | cut -d',' -f1` ; then docker system prune --all
--force --volumes ; else docker system prune --all --force --filter
"until=${maxJobHours}h" ; fi;
+ if pgrep -af "cassandra-builds/build-scripts"
; then docker system prune --all --force --filter "until=${maxJobHours}h"docker
system prune --all --force --volumes ; else ; fi;
echo "Reporting disk usage…"; df -h ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
@@ -635,7 +635,7 @@ cassandraBranches.each {
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Pruning docker…" ;
- if `curl -s
"\${JENKINS_URL}/computer/\${NODE_NAME}/api/json?pretty=true" | grep 'idle' |
awk -F' : ' '{print \$2}' | cut -d',' -f1` ; then docker system prune --all
--force --volumes ; else docker system prune --all --force --filter
"until=${maxJobHours}h" ; fi;
+ if pgrep -af "cassandra-builds/build-scripts" ; then
docker system prune --all --force --filter "until=${maxJobHours}h"docker system
prune --all --force --volumes ; else ; fi;
echo "Reporting disk usage…"; df -h ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
@@ -777,7 +777,7 @@ matrixJob('Cassandra-devbranch-artifacts') {
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Pruning docker…" ;
- if `curl -s
"\${JENKINS_URL}/computer/\${NODE_NAME}/api/json?pretty=true" | grep 'idle' |
awk -F' : ' '{print \$2}' | cut -d',' -f1` ; then docker system prune --all
--force --volumes ; else docker system prune --all --force --filter
"until=${maxJobHours}h" ; fi;
+ if pgrep -af "cassandra-builds/build-scripts" ; then docker
system prune --all --force --filter "until=${maxJobHours}h"docker system prune
--all --force --volumes ; else ; fi;
echo "Reporting disk usage…"; df -h ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
@@ -891,7 +891,7 @@ testTargets.each {
task('.', """
echo "Cleaning project…"; git clean -xdff ${targetName ==
'microbench' ? '-e build/test/jmh-result.json' : ''};
echo "Pruning docker…" ;
- if `curl -s
"\${JENKINS_URL}/computer/\${NODE_NAME}/api/json?pretty=true" | grep 'idle' |
awk -F' : ' '{print \$2}' | cut -d',' -f1` ; then docker system prune --all
--force --volumes ; else docker system prune --all --force --filter
"until=${maxJobHours}h" ; fi;
+ if pgrep -af "cassandra-builds/build-scripts" ; then
docker system prune --all --force --filter "until=${maxJobHours}h"docker system
prune --all --force --volumes ; else ; fi;
echo "Reporting disk usage…"; du -xm / 2>/dev/null | sort
-rn | head -n 30 ; df -h ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
@@ -1026,7 +1026,7 @@ archs.each {
task('.', """
echo "Cleaning project…" ; git clean -xdff ;
echo "Pruning docker…" ;
- if `curl -s
"\${JENKINS_URL}/computer/\${NODE_NAME}/api/json?pretty=true" | grep 'idle' |
awk -F' : ' '{print \$2}' | cut -d',' -f1` ; then docker system prune --all
--force --volumes ; else docker system prune --all --force --filter
"until=${maxJobHours}h" ; fi;
+ if pgrep -af "cassandra-builds/build-scripts" ; then
docker system prune --all --force --filter "until=${maxJobHours}h"docker system
prune --all --force --volumes ; else ; fi;
echo "Reporting disk usage…"; df -h ;
echo "Cleaning tmp…";
find . -type d -name tmp -delete 2>/dev/null ;
@@ -1132,7 +1132,7 @@ matrixJob('Cassandra-devbranch-cqlsh-tests') {
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Pruning docker…" ;
- if `curl -s
"\${JENKINS_URL}/computer/\${NODE_NAME}/api/json?pretty=true" | grep 'idle' |
awk -F' : ' '{print \$2}' | cut -d',' -f1` ; then docker system prune --all
--force --volumes ; else docker system prune --all --force --filter
"until=${maxJobHours}h" ; fi;
+ if pgrep -af "cassandra-builds/build-scripts" ; then docker
system prune --all --force --filter "until=${maxJobHours}h"docker system prune
--all --force --volumes ; else ; fi;
echo "Reporting disk usage…"; df -h ;
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]