我定义了包含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?