[JIRA] (JENKINS-58977) publishIssues() should use default ID instead of ID of first scan tool in list

0 views
Skip to first unread message

stefan.thurnherr@gmail.com (JIRA)

unread,
Aug 18, 2019, 4:49:02 PM8/18/19
to jenkinsc...@googlegroups.com
Stefan Thurnherr created an issue
 
Jenkins / Improvement JENKINS-58977
publishIssues() should use default ID instead of ID of first scan tool in list
Issue Type: Improvement Improvement
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-08-18 20:48
Environment: Jenkins 2.189
warnings-ng 5.3.0
Priority: Minor Minor
Reporter: Stefan Thurnherr

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

stefan.thurnherr@gmail.com (JIRA)

unread,
Aug 18, 2019, 4:49:03 PM8/18/19
to jenkinsc...@googlegroups.com
Stefan Thurnherr updated an issue
Change By: Stefan Thurnherr
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:

{noformat}

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]
{noformat}


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.

stefan.thurnherr@gmail.com (JIRA)

unread,
Aug 18, 2019, 4:49:03 PM8/18/19
to jenkinsc...@googlegroups.com
Stefan Thurnherr updated an issue
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:

{noformat}
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]
{noformat}

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.

stefan.thurnherr@gmail.com (JIRA)

unread,
Aug 18, 2019, 5:07:03 PM8/18/19
to jenkinsc...@googlegroups.com
Stefan Thurnherr updated an issue
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:

{noformat}
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]
{noformat}

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.

(follow-up from [gitter discussion 2019-08-18|https://gitter.im/jenkinsci/warnings-plugin?at=5d59b9ffbfd2887f53146b16])

ullrich.hafner@gmail.com (JIRA)

unread,
Aug 18, 2019, 5:32:02 PM8/18/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Aug 18, 2019, 5:34:03 PM8/18/19
to jenkinsc...@googlegroups.com
Ulli Hafner started work on Improvement JENKINS-58977
 
Change By: Ulli Hafner
Status: Open In Progress

ullrich.hafner@gmail.com (JIRA)

unread,
Aug 19, 2019, 6:24:02 AM8/19/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 3, 2019, 7:06:03 PM9/3/19
to jenkinsc...@googlegroups.com

stefan.thurnherr@gmail.com (JIRA)

unread,
Oct 19, 2019, 3:59:03 PM10/19/19
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

stefan.thurnherr@gmail.com (JIRA)

unread,
Oct 19, 2019, 3:59:04 PM10/19/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages