While doing bulk delete of builds I noticed that job health (weather) was
not reflecting builds present after a deletion.
I used groovy script provided by scriptler plugin:
import jenkins.model.*;
import hudson.model.Fingerprint.RangeSet;
def j = jenkins.model.Jenkins.instance.getItem(jobName);
def r = RangeSet.fromString(buildRange, true);
j.getBuilds(r).each { it.delete() }
How can I trigger a recalculation of health for the job after a bulk delete
like this? I know triggering a new run of job is works but I would prefer a
plain recalculation.
I am using Jenkins version 1.480.1.
Asmund
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.