[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Ulli Hafner updated an issue Jenkins / JENKINS-39651 FileNotFoundException when scanning compiler warnings in multibranch pipeline Change By: Ulli Hafner 5We We used warnings plugin in a multibranch pipeline Jenkinsfile for a Maven Java project as follows:{code:java} stage('Build') { maven '-DskipTests clean install -P TOMCAT' maven '-DskipTests clean install -P WAS' step([$class: 'WarningsPublisher', parserConfigurations: [[parserName: 'AspectJ Compiler (ajc)'], [parserName: 'Java Compiler (javac)']]]) }{code}This is incorrect usage (we found later that we must use "consoleParsers" instead of "parserConfigurations"), but Jenkins reports an unclear error in the job summary for each parser:Ajc Warnings: 0 warnings from one analysis.During parsing an error has been reported.Java Warnings: 0 warnings from one analysis.During parsing an error has been reported.The error is the same: the plugin tries to open a directory (as a file ?) and face FileNotFoundException:{noformat}Module : Parsing of file /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA failed due to an exception: java.io.FileNotFoundException: /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA (Is a directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at hudson.plugins.warnings.parser.ParserRegistry.createReader(ParserRegistry.java:325) at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:281) at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:261) at hudson.plugins.warnings.parser.FileWarningsParser.parse(FileWarningsParser.java:44) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:325) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:283) at hudson.plugins.analysis.core.FilesParser.parseSingleFile(FilesParser.java:241) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:200) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:1018) at hudson.FilePath.act(FilePath.java:996) at hudson.plugins.warnings.WarningsPublisher.parseFiles(WarningsPublisher.java:400) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:298) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:68) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:280) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52) at hudson.security.ACL.impersonate(ACL.java:221) at
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Olivier Dagenais updated an issue Jenkins / JENKINS-39651 FileNotFoundException when scanning compiler warnings in multibranch pipeline Change By: Olivier Dagenais We 5We used warnings plugin in a multibranch pipeline Jenkinsfile for a Maven Java project as follows:{code:java} stage('Build') { maven '-DskipTests clean install -P TOMCAT' maven '-DskipTests clean install -P WAS' step([$class: 'WarningsPublisher', parserConfigurations: [[parserName: 'AspectJ Compiler (ajc)'], [parserName: 'Java Compiler (javac)']]]) }{code}This is incorrect usage (we found later that we must use "consoleParsers" instead of "parserConfigurations"), but Jenkins reports an unclear error in the job summary for each parser:Ajc Warnings: 0 warnings from one analysis.During parsing an error has been reported.Java Warnings: 0 warnings from one analysis.During parsing an error has been reported.The error is the same: the plugin tries to open a directory (as a file ?) and face FileNotFoundException:{noformat}Module : Parsing of file /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA failed due to an exception: java.io.FileNotFoundException: /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA (Is a directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at hudson.plugins.warnings.parser.ParserRegistry.createReader(ParserRegistry.java:325) at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:281) at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:261) at hudson.plugins.warnings.parser.FileWarningsParser.parse(FileWarningsParser.java:44) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:325) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:283) at hudson.plugins.analysis.core.FilesParser.parseSingleFile(FilesParser.java:241) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:200) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:1018) at hudson.FilePath.act(FilePath.java:996) at hudson.plugins.warnings.WarningsPublisher.parseFiles(WarningsPublisher.java:400) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:298) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:68) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:280) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52) at hudson.security.ACL.impersonate(ACL.java:221) at
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Ulli Hafner edited a comment on JENKINS-39651 Re: FileNotFoundException when scanning compiler warnings in multibranch pipeline Well, if you don't specify the pattern for the {{parserConfigurations}} then the default ( " ** ** /* * ") is used. When you don't use (the new evil) project type pipeline then this would be clearly visible in the UI. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Ulli Hafner edited a comment on JENKINS-39651 Re: FileNotFoundException when scanning compiler warnings in multibranch pipeline Well, if you don't specify the pattern for the {{parserConfigurations}} then the default (*** * /**") is used. When you don't use (the new evil) project type pipeline then this would be clearly visible in the UI. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Ulli Hafner resolved as Not A Defect Well, if you don't specify the pattern for the parserConfigurations then the default ("*/") is used. When you don't use (the new evil) project type pipeline then this would be clearly visible in the UI. Jenkins / JENKINS-39651 FileNotFoundException when scanning compiler warnings in multibranch pipeline Change By: Ulli Hafner Status: Open Resolved Resolution: Not A Defect Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues"
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Vincent Privat commented on JENKINS-39651 Re: FileNotFoundException when scanning compiler warnings in multibranch pipeline Sure ! The description is updated as well, we found it was incorrect usage but the error was not clear. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Vincent Privat updated an issue Jenkins / JENKINS-39651 FileNotFoundException when scanning compiler warnings in multibranch pipeline Change By: Vincent Privat We used warnings plugin in a multibranch pipeline Jenkinsfile for a Maven Java project as follows:{code:java} stage('Build') { maven '-DskipTests clean install -P TOMCAT' maven '-DskipTests clean install -P WAS' step([$class: 'WarningsPublisher', parserConfigurations: [[parserName: 'AspectJ Compiler (ajc)'], [parserName: 'Java Compiler (javac)']]]) }{code}This is incorrect usage (we found later that we must use "consoleParsers" instead of "parserConfigurations"), but Jenkins reports an unclear error in the job summary for each parser:Ajc Warnings: 0 warnings from one analysis.During parsing an error has been reported.Java Warnings: 0 warnings from one analysis.During parsing an error has been reported.The error is the same: the plugin tries to open a directory (as a file ?) and face FileNotFoundException: {noformat} Module : Parsing of file /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA failed due to an exception:java.io.FileNotFoundException: /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA (Is a directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195)at java.io.FileInputStream.(FileInputStream.java:138)at hudson.plugins.warnings.parser.ParserRegistry.createReader(ParserRegistry.java:325)at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:281)at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:261)at hudson.plugins.warnings.parser.FileWarningsParser.parse(FileWarningsParser.java:44)at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:325)at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:283)at hudson.plugins.analysis.core.FilesParser.parseSingleFile(FilesParser.java:241)at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:200)at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)at hudson.FilePath.act(FilePath.java:1018) at hudson.FilePath.act(FilePath.java:996)at hudson.plugins.warnings.WarningsPublisher.parseFiles(WarningsPublisher.java:400)at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:298)at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:68)at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:280)at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59)at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52) at hudson.security.ACL.impersonate(ACL.java:221)at
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Vincent Privat updated an issue Jenkins / JENKINS-39651 FileNotFoundException when scanning compiler warnings in multibranch pipeline Change By: Vincent Privat We used warnings plugin in a multibranch pipeline Jenkinsfile for a Maven Java project as follows:{ { code:java} stage('Build') { maven '-DskipTests clean install -P TOMCAT' maven '-DskipTests clean install -P WAS' step([$class: 'WarningsPublisher', parserConfigurations: [[parserName: 'AspectJ Compiler (ajc)'], [parserName: 'Java Compiler (javac)']]]) } {code } } This is incorrect usage (we found later that we must use "consoleParsers" instead of "parserConfigurations"), but Jenkins reports an unclear error in the job summary for each parser:Ajc Warnings: 0 warnings from one analysis.During parsing an error has been reported.Java Warnings: 0 warnings from one analysis.During parsing an error has been reported.The error is the same: the plugin tries to open a directory (as a file ?) and face FileNotFoundException:Module : Parsing of file /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA failed due to an exception: java.io.FileNotFoundException: /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA (Is a directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at hudson.plugins.warnings.parser.ParserRegistry.createReader(ParserRegistry.java:325) at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:281) at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:261) at hudson.plugins.warnings.parser.FileWarningsParser.parse(FileWarningsParser.java:44) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:325) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:283) at hudson.plugins.analysis.core.FilesParser.parseSingleFile(FilesParser.java:241) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:200) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:1018) at hudson.FilePath.act(FilePath.java:996) at hudson.plugins.warnings.WarningsPublisher.parseFiles(WarningsPublisher.java:400) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:298) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:68) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:280) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52) at hudson.security.ACL.impersonate(ACL.java:221) at
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Vincent Privat updated an issue Jenkins / JENKINS-39651 FileNotFoundException when scanning compiler warnings in multibranch pipeline Change By: Vincent Privat We use used warnings plugin in a multibranch pipeline Jenkinsfile for a Maven Java project as follows: {{ stage('Build') { maven '-DskipTests clean install -P TOMCAT' maven '-DskipTests clean install -P WAS' step([$class: 'WarningsPublisher', parserConfigurations: [[parserName: 'AspectJ Compiler (ajc)'], [parserName: 'Java Compiler (javac)']]]) } }} It works fine This is incorrect usage (we found later that we must use "consoleParsers" instead of "parserConfigurations") , but Jenkins reports an unclear error in the job summary for each parser:Ajc Warnings: 0 warnings from one analysis.During parsing an error has been reported.Java Warnings: 0 warnings from one analysis.During parsing an error has been reported.The error is the same: the plugin tries to open a directory (as a file ?) and face FileNotFoundException:Module : Parsing of file /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA failed due to an exception: java.io.FileNotFoundException: /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA (Is a directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at hudson.plugins.warnings.parser.ParserRegistry.createReader(ParserRegistry.java:325) at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:281) at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:261) at hudson.plugins.warnings.parser.FileWarningsParser.parse(FileWarningsParser.java:44) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:325) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:283) at hudson.plugins.analysis.core.FilesParser.parseSingleFile(FilesParser.java:241) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:200) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31) at hudson.FilePath.act(FilePath.java:1018) at hudson.FilePath.act(FilePath.java:996) at hudson.plugins.warnings.WarningsPublisher.parseFiles(WarningsPublisher.java:400) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:298) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:68) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:280) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52) at hudson.security.ACL.impersonate(ACL.java:221) at
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Ulli Hafner commented on JENKINS-39651 Re: FileNotFoundException when scanning compiler warnings in multibranch pipeline Can you please wrap your blocks in the description with noformat tags? Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39651) FileNotFoundException when scanning compiler warnings in multibranch pipeline
Title: Message Title Vincent Privat created an issue Jenkins / JENKINS-39651 FileNotFoundException when scanning compiler warnings in multibranch pipeline Issue Type: Bug Assignee: Ulli Hafner Components: warnings-plugin Created: 2016/Nov/10 5:16 PM Environment: Jenkins ver. 2.19.2, Linux RHEL7, warnings 4.57 Labels: pipeline multibranch Priority: Minor Reporter: Vincent Privat We use warnings plugin in a multibranch pipeline Jenkinsfile for a Maven Java project as follows: stage('Build') { maven '-DskipTests clean install -P TOMCAT' maven '-DskipTests clean install -P WAS' step([$class: 'WarningsPublisher', parserConfigurations: [[parserName: 'AspectJ Compiler (ajc)'], [parserName: 'Java Compiler (javac)']]]) } It works fine, but Jenkins reports an error in the job summary for each parser: Ajc Warnings: 0 warnings from one analysis. During parsing an error has been reported. Java Warnings: 0 warnings from one analysis. During parsing an error has been reported. The error is the same: the plugin tries to open a directory (as a file ?) and face FileNotFoundException: Module : Parsing of file /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA failed due to an exception: java.io.FileNotFoundException: /var/lib/jenkins/workspace/-TYZ4HTMUDELQTO2KFI4T3R4ABMOEN4QPSBNFVWREXQY4ETHJWNNA (Is a directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at