Skip to main content

Uploading a Codebase

Before Code Insight can perform a scan, you must upload the archive file containing the source code and binary files of a codebase to the Scan Server. This archive can be a .zip, .7z, .tar, or .tar.gz file.

tip

If your codebase changes, you can upload a new version of the codebase file by following the same procedure.

To upload a codebase to the project:

  1. Perform the steps in Creating a Project.
  2. In the list of projects in the Projects pane, click the Open project icon next to the project you want to open. The Project Summary page opens.
  3. Click Upload Project Codebase. The File Upload dialog opens.
  4. Click Select Archive File to browse to for the archive file (.zip, .7z, .tar, or .tar.gz) containing your codebase.
  5. (Optional) Select Delete existing project codebase files to have Code Insight delete previously uploaded codebase files associated with this project.
    note

    If you select this option, a Warning dialog appears, asking you to confirm the deletion. Be aware that all existing codebase files for project will be permanently removed from the Scan Server during the upload. If you rescan the project without replacing these files via a new upload, the scan results for the removed files will be permanently deleted.

  6. For Archive File Expansion Options, select the level of archive expansion you want to perform on the codebase:
    • Uploaded file only—Extract the files from the uploaded archive. Any extracted archives are not expanded.

    • Uploaded file and first-level archives only—Extract the files from the uploaded archive and expand all first-level archives in the codebase. Note that the expanded archive itself is retained along with its extracted contents in the parent folder.

    • Uploaded file and all contained archives—Extract the files from the uploaded archive and expand archives at all levels (that is, archives with archives within archives and so forth) in the codebase. Note that each expanded archive is retained along with its extracted contents in the parent folder.

  7. Click Upload. Code Insight uploads the codebase file and attaches it to the selected project. You are now ready to scan the codebase.
  8. Proceed with the steps in Performing a Scan.