I have a development group that has Maven project in which I've been helping them set up scans. The current method we've been using is to embed a scan script that I created using scan wizard. At the bottom of the script are multiple REM's which include the path for class files.
REM ARGS "PROJECTROOT0_MARKER\<PATH>\guidedPortfolios\util\MarketCalendar.class;PROJECTROOT0_MARKER<PATH>\internalapp\guidedPortfolios\util\PortfolioBuilderConstants.class;PROJECTROOT0_MARKER\<PATH>\internalapp\guidedPortfolios\util\StaticDataHolder.class;PROJECTROOT0_MARKER<PATH>guidedPortfolios\util\TaxDefferedAccounts.class;PROJECTROOT0_MARKER\<PATH>\util\Utils.class"
REM ARGS "-cp"
REM ARGS "PROJECTROOT0_MARKER\<PATH>\SearchAccounts1.class;PROJECTROOT0_MARKER\<PATH>\WordPress.class"
REM ARGS "-source"
REM ARGS "1.5"
REM ARGS "PROJECTROOT0_MARKER"
When these REM's are included the scan works fine via Jenkins. When they are eliminated the scan fails? These are just comments so I don't know why it fails. (The reason these REMs have been removed is that they are several hundred lines long.
This is the Jenkins Error:
[<Project>] $ cmd /c call C:\Users\<user>\AppData\Local\Temp\hudson3721415365006385515.bat
Extracting Arguments File
Cleaning previous scan artifacts
[error]: No valid input files were specified. (Use the -scan option to analyze previously-built sources.)
Fortify Static Code Analyzer 6.10.0120