Dividing Files into Segments for a Pipeline Scan

Veracode APIs

To prepare for uploading application files to a Pipeline Scan, you can divide the files into smaller segments.

To determine the approximate size for each segment, divide the binary_size value by the binary_segments_expected value. See the Veracode Pipeline Scan API Specification for a description of all Pipeline Scan REST API parameters.

Use this command to divide the file into segments on MacOS and Linux:

split -f {filename} /{full_path_to_file} 
 

This command creates output files named with three letters starting with xaa. For example, xaa, xab, and xac. The command creates the output files in the same directory as the original file.

Use this command to divide the file into segments on Windows:

Split-File "c: /{full_path_to_file}" {filename}
   

This command uses the Open Source PowerShell function Split-File, available on GitHub. This command creates files named file{nn}.dat, for example, file01.dat, file02.dat, and file03.dat.