Providing the Pipeline Script for the Scan Step
Once you build the Pipeline job, you need to include the Pipeline script for the scan step, StartScan, in your Pipeline code. (The next section, Pipeline Code Examples for Running the Scan, provides examples of Pipeline code that include this script.)
To create the Pipeline script for the StartScan step, you can use one of these methods:
-
Go to the Snippet Generator, select the StartScan: Scan workspace and send results to FlexNet Code Insight step, and generate the script. Then copy and paste the generated script into the Pipeline code.
-
Simply create the script for the
StartScanstep as highlighted in the Pipeline code examples.
See Setting Up the Code Insight Jenkins Scan-Agent Plugin for a description of the properties (base URL, project name, and JWT) used in the Pipeline script.