Closed samrocketman closed 6 years ago
https://wiki.jenkins-ci.org/display/JENKINS/Collapsing+Console+Sections+Plugin
import org.jvnet.hudson.plugins.collapsingconsolesections.CollapsingSectionNote import org.jvnet.hudson.plugins.collapsingconsolesections.CollapsingSectionsConfiguration def j=Jenkins.instance def c=j.getExtensionList(CollapsingSectionNote.DescriptorImpl)[0] if(c.getSections().size() < 1) { CollapsingSectionNote section = new CollapsingSectionNote('{1}', '^\\# ([^ ]+ [^ ]+)$', '^\\$ set \\+x$', false) c.setSections([section] as CollapsingSectionNote[]) c.numberingEnabled = false c.configuration = new CollapsingSectionsConfiguration(c.sections, c.numberingEnabled) c.save() println "Updated config." }
No longer relevant since moving away from freestyle jobs. Migrating to 100% pipeline jobs is nearly complete.
https://wiki.jenkins-ci.org/display/JENKINS/Collapsing+Console+Sections+Plugin