sonar4bitbucket在png文件上运行diff时失败

j1dl9f46  于 2021-06-29  发布在  Java
关注(0)|答案(0)|浏览(227)

我在jenkins作业的sonar分析步骤中遇到了以下错误,当时我正在对新添加到bitbucket repo中的png文件运行diff。

diff --git a/test/security/images/security_vault.png b/test/security/images/security_vault.png
new file mode 100644
index 0000000..c73bf4c
Binary files /dev/null and b/test/security/images/security_vault.png differ
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project demo-service: [sonar4bitbucket] Failed to parse diff: string matching regex `\z' expected but `B' found -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project demo-service: [sonar4bitbucket] Failed to parse diff: string matching regex `\z' expected but `B' found

这些png文件不会经常更改,我想跳过对它们的任何类型的分析,而是将它们保存在repo中。我尝试在administration->general settings->analysis scope中将*.png添加到文件排除中,但仍然没有导致上述错误。有没有其他方法可以达到这个目的?谢谢您。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题