简体   繁体   English

错误:Checkmarx 扫描失败:在 CxSAST 扫描时没有要在 Jenkins 中扫描的文件

[英]ERROR: Checkmarx Scan Failed: No files to scan in Jenkins while CxSAST Scan

I am trying to run Checkmarx Scan in post build section of Jenkins.我正在尝试在 Jenkins 的后期构建部分运行 Checkmarx Scan。
In my jenkins job steps are -->在我的詹金斯工作中,步骤是 -->
1st) Getting source code from SVN Connection to Checkmarx is successful. 1st) 从 SVN Connection 获取源代码到 Checkmarx 是成功的。
2nd) Build code using Maven --- Step 1 and 2 is success. 2nd) 使用 Maven 构建代码 --- 第 1 步和第 2 步是成功的。
But because of 3rd) step ie CxSAST Scan while running jenkins Build getting error like -但由于第 3 步,即运行 jenkins Build 时的 CxSAST 扫描,出现如下错误 -
[Checkmarx] - [info] - No files to zip [Checkmarx] - [info] - 没有要压缩的文件
ERROR: Checkmarx Scan Failed: No files to scan错误:Checkmarx 扫描失败:没有要扫描的文件

Where we have to configure -what source file Checkmarx is going to scan as part of Jenkins Build ?我们必须在哪里配置 - Checkmarx 将作为 Jenkins Build 的一部分扫描哪些源文件?
or Where we can upload source code zip in CxSAST plugin of Jenkins ..so that checkmarx can run the Scan after build.或者我们可以在 Jenkins 的 CxSAST 插件中上传源代码 zip ..以便 checkmarx 可以在构建后运行扫描。

在此处输入图像描述

在此处输入图像描述

Have attached Job configuration screen sort .附上作业配置屏幕排序。
Someone please guide how to resolve this issue .Thanks !!有人请指导如何解决这个问题。谢谢!

in Jenkins you would first need to configure the Source Code Management task of your job to point to your source code repository.在 Jenkins 中,您首先需要将作业的源代码管理任务配置为指向您的源代码存储库。 The CxSAST Scan task then automatically picks this for processing with Checkmarx plugin.然后,CxSAST 扫描任务会自动选择它以使用 Checkmarx 插件进行处理。

I am experiencing the same problem using Bamboo, "No files to zip."我在使用 Bamboo 时遇到了同样的问题,“没有要压缩的文件”。

The solution is by creating a new "Source Code Checkout (Checkout from repository)" task before the CxSAST Scanning task, on the same Job.解决方案是在 CxSAST 扫描任务之前,在同一个作业上创建一个新的“源代码签出(从存储库签出)”任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM