多分支作业不显示带有警告下一代插件的图形趋势

时间:2019-10-27 16:19:52

标签: jenkins jenkins-pipeline jenkins-plugins

我定义了包含pylint执行和codenarc的多分支管道作业

CI成功完成,我看到了有关pylint和codenarc的报告的链接,但在分支页面上看不到图形趋势。

我将“警告下一代插件”用于报告。

我多次执行相同的分支作业,但结果相同-没有图形。

Jenkinsfile(仅相关阶段)

....

stage("Static Code Analysis (Pylint check)"){
    steps{
         sh "docker run --rm -v ${WORKSPACE}/test/cfg/pylint.rc:/etc/pylint.cfg -v ${WORKSPACE}/test:/code eeacms/pylint |tee pylint.log"
         recordIssues(tools: [pyLint(pattern: 'pylint.log')])
    }
}
stage("Code lint"){
    steps{
         sh "docker run --rm -v ${WORKSPACE}:/ws:z -u `id -u`:`id -g` edupo/codenarc -report=html -report=xml -rulesetfiles=rulesets/basic.xml"

         recordIssues(tools: [codeNarc(pattern: 'CodeNarcXmlReport.xml')])
    }
}

....

When I did it in regular pipeline job type (the same jenkinsfile), I can see the trend graphs.

What need to be done in order to see the graph in multi pipeline job type?

0 个答案:

没有答案