0

我正在尝试将 cucumberTestResults 作为构建后操作添加到我的 dsl 文件中。但它只是被忽视了。

job('example-atm') {
    scm {
        git {
            branch(branchName)
            remote {
                url(gitUrl)
                credentials(credentialsName)
            }
        }
    }
    triggers {
        scm('H/15 * * * *')
    }
    steps {
        maven('clean test')
    }
    publishers {
        cucumberTestResults {
            jsonReportFiles('./reports/test-report.json')
            ignoreBadSteps()
        }
    }
}
4

1 回答 1

0

我找到了解决方案:

publishers {
    cucumber {
        fileIncludePattern('**/*.json')
    }
}

似乎只有https://github.com/jenkinsci/job-dsl-plugin/wiki是正确的 wiki。其他页面包含错误信息。

于 2018-08-20T05:57:15.300 回答