简体   繁体   中英

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.
In my jenkins job steps are -->
1st) Getting source code from SVN Connection to Checkmarx is successful.
2nd) Build code using Maven --- Step 1 and 2 is success.
But because of 3rd) step ie CxSAST Scan while running jenkins Build getting error like -
[Checkmarx] - [info] - No files to zip
ERROR: Checkmarx Scan Failed: No files to scan

Where we have to configure -what source file Checkmarx is going to scan as part of Jenkins Build ?
or Where we can upload source code zip in CxSAST plugin of Jenkins ..so that checkmarx can run the Scan after build.

在此处输入图像描述

在此处输入图像描述

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. The CxSAST Scan task then automatically picks this for processing with Checkmarx plugin.

I am experiencing the same problem using Bamboo, "No files to zip."

The solution is by creating a new "Source Code Checkout (Checkout from repository)" task before the CxSAST Scanning task, on the same Job.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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