I have expanded the script a bit, so it checks for free disk space:
import hudson.model.*;
import hudson.node_monitors.DiskSpaceMonitor;
import java.math.BigDecimal;
def thr = Thread.currentThread()
def computer = thr?.executable.getBuiltOn().toComputer()
def space = DiskSpaceMonitor.DESCRIPTOR.g
William:
Downstream job won't work, because it will be queued and it will be too late
before it gets executed.
Sami:
Yes, groovy sounds like a good idea.
I have groovy-postbuild plugin, so I will add a check for disk space and I
can turn the slave offline there.
--
View this message in con
ers@googlegroups.com] on
> behalf of Pawel [pgronkiew...@gmail.com]
> Sent: Monday, February 25, 2013 2:29 AM
> To: jenkinsci-users@googlegroups.com
> Subject: Re: Jobs starting on slaves with no disk space
>
> That's not a solution I can accept - I need those workspaces at
9 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Jobs starting on slaves with no disk space
That's not a solution I can accept - I need those workspaces at least for
some time. They are being wiped out every 24h.
For me it looks like a bug in Jenkins - as problems like that shouldn't
hap
That's not a solution I can accept - I need those workspaces at least for
some time. They are being wiped out every 24h.
For me it looks like a bug in Jenkins - as problems like that shouldn't
happen.
--
View this message in context:
http://jenkins.361315.n4.nabble.com/Jobs-starting-on-slaves-
Install post-build-task plugin and use that to clean the workspace at the end
of the build.
-- Sami
Pawel kirjoitti 18.2.2013 kello 13.01:
> Hi,
>
> I have a problem with jobs being started on a slaves that are low on disk
> space. I know there is a setting to turn the slaves offline automati