Issue Type: Bug Bug
Assignee: Justin Ryan
Components: job-dsl-plugin
Created: 10/Jan/14 3:15 PM
Description:

Please provide support to intregrate the StabilityTestDataPublisher plugin. It provides an overview of the JUnit results.

I've used this custom extension to the DSL to integrate it:

PublisherContext.metaClass.junit = { String pattern, boolean testStability = true,
            boolean retainLongStdout = true, boolean allowClaimingOfFailedTests = false, boolean publishTestAttachments = false ->

            def nodeBuilder = new NodeBuilder()

            Node archiverNode = nodeBuilder.'hudson.tasks.junit.JUnitResultArchiver' {
                testResults pattern
                keepLongStdio retainLongStdout ? 'true' : 'false'
                testDataPublishers {
                    if (allowClaimingOfFailedTests) {
                        'hudson.plugins.claim.ClaimTestDataPublisher' ''
                    }
                    if (publishTestAttachments) {
                        'hudson.plugins.junitattachments.AttachmentPublisher' ''
                    }
                    if (testStability) {
                        'de.esailors.jenkins.teststability.StabilityTestDataPublisher' ''
                    }
                }
            }
            publisherNodes << archiverNode
        }
Project: Jenkins
Priority: Major Major
Reporter: Kenny Moens
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" 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.

Reply via email to