When using several scanForIssues() steps and a single publishIssues() step at the end, the default id used for publishIssues() should be 'analysis', not taken from the first tool in the scanned tools list. Here is a simple example:
def pmdIssues = scanForIssues tool: pmdParser(pattern: '**/target/pmd.xml')
def cpdIssues = scanForIssues tool: cpd(pattern: '**/target/cpd.xml')
def taskScannerIssues = scanForIssues
tool: taskScanner(normalTags: 'TODO,FIXME', excludePattern: '*/target/**')
def javaIssues = scanForIssues tool: java()
def mavenConsoleIssues = scanForIssues tool: mavenConsole()
publishIssues name: 'Static Analysis',
issues: [pmdIssues, cpdIssues, taskScannerIssues, javaIssues, mavenConsoleIssues]
In the current version of warnings-ng plugin, the build will use 'pmd' as ID for links and controlling the icon when not specifying a custom ID for publishIssues() step. *Expected behaviour * would be that the default ID is 'analysis' when using publishIssues() without specifying a custom ID. |