Skip to content

Commit 41bdeb4

Browse files
authored
add folder.save
Changes don't persist a restart without saving the folder config.xml, and some customers were seeing this as the version referenced in the KB article [How to disable the weather column to resolve instance slowness](https://cloudbees.zendesk.com/hc/en-us/articles/216973327-How-to-disable-the-weather-column-to-resolve-instance-slowness) was also missing the call
1 parent 437d08e commit 41bdeb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

folder-remove-healthmetrics.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ folders.each{ folder ->
66
if (!(metric instanceof com.cloudbees.hudson.plugins.folder.health.ProjectEnabledHealthMetric)) {
77
println "Removing ${metric.class.simpleName} from ${folder.name}"
88
folder.healthMetrics.remove(metric)
9+
folder.save()
910
}
1011
}
1112
}
12-
return null
13+
return null

0 commit comments

Comments
 (0)