Missing configure items for archiveJunit and gradle

37 views
Skip to first unread message

Lars K

unread,
Apr 30, 2015, 8:56:15 PM4/30/15
to job-dsl...@googlegroups.com
First of all this is a great plugin :-)

But there are some missing fields/flags

Currently i try to setup our jobs via the DSL plugin for different branches and there are some missing fields in:

        gradle {
            description("will execute checkout,build,tests and code
analysis for project : "+projectName)
            tasks(":${projectName}:build :${projectTestName}:build --
stacktrace --parallel --parallel-threads=3")
            switches("-PrunCodeAnalysis -PrunTests
-PmaxParallelForksForTests=10 -PincludeNightlyBuildTests -Pprofile="
standalone"")
            useWrapper(true)
            buildFile("build.gradle")
            fromRootBuildScriptDir(true)
            makeExecutable(true)
            //useWorkspaceAsHome(true) is missing
        }
    }

so there the
      useWorkspaceAsHome(true) is missing

and

for archiveJunit

   archiveJunit(projectTestName+"/build/test-results/*.xml") {
            retainLongStdout()
            testDataPublishers {
                publishTestStabilityData()
            }
            // healthScaleFactor is missing
        }

there i canÄt modify the healthScaleFactor 


Would be nice if there is a support for that somehow in future :) Inthe meanwhile i will try to figure out how i can ajdust this settings via the groocy command shell after the jobs are created.


Thanks for any help

Lars

Daniel Spilker

unread,
May 4, 2015, 7:29:36 AM5/4/15
to job-dsl...@googlegroups.com
You do not need to use the command shell to adjust any settings. You can use a configure block to add unsupported options directly from the DSL. See https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block.

Daniel

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/d5f52646-7b13-4052-8e98-89751cc02420%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages