Pushed a change that uses a closure/context for the ranges. The user can
target individual min/max values or set the range at once for each
category. Added notes to the wiki pages.


On Wed, Dec 18, 2013 at 2:47 PM, Daniel Spilker <notifications@github.com>wrote:

> In
> job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContextHelper.groovy:
>
> > +         *         <includes>coverage-results/coverage.xml</includes>
> > +         *         <healthReports>
> > +         *             <minClass>0</minClass>
> > +         *             <maxClass>100</maxClass>
> > +         *             <minMethod>0</minMethod>
> > +         *             <maxMethod>70</maxMethod>
> > +         *             <minBlock>0</minBlock>
> > +         *             <maxBlock>80</maxBlock>
> > +         *             <minLine>0</minLine>
> > +         *             <maxLine>80</maxLine>
> > +         *             <minCondition>0</minCondition>
> > +         *             <maxCondition>0</maxCondition>
> > +         *         </healthReports>
> > +         *     </hudson.plugins.emma.EmmaPublisher>
> > +         */
> > +        def emma(String fileSet = '', IntRange classThreshold = 0..100, IntRange methodThreshold = 0..70, IntRange blockThreshold = 0..80, IntRange lineThreshold = 0..80, IntRange conditionThreshold = 0..<1) {
>
> That are lots of arguments. emma('coverage-results/coverage.xml', 5..90,
> 10..80, 15..75, 20..70, 25..65) is hard to read and understand. Can you
> convert this to a sub-context with a method for each range?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jenkinsci/job-dsl-plugin/pull/117/files#r8448227>
> .
>