Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68549

Add option to delete scans that have not been completed to the Jenkins plugin for Freestyle

XMLWordPrintable

      As Amit the AppSec manager I would like to have an option to automatically delete scans that have not been completed added to the Jenkins plugin so that I am no longer required to manually intervene and delete these scans in order for subsequent Jenkins scans to be submitted.

      Acceptance criteria:

      • Add an override option to the Jenkins plugin to automatically delete scans that have been completed for Pipeline based on the following choices:
        • Level 0 - do not delete an incomplete scan when running the uploadandscan action. The default. If set, you must delete an incomplete scan manually to proceed with the uploadandscan action.
        • Level 1 - delete a scan with a status of incomplete, no modules defined, failed, or canceled to proceed with the uploadandscan action. If errors occur when running this action, the Java wrapper automatically deletes the incomplete scan.
        • Level 2 - delete a scan of any status except Results Ready to proceed with the uploadandscan action. If errors occur when running this action, the Java wrapper automatically deletes the incomplete scan.
      • Requires latest Java Wrapper ( v22.5.10.0) with delete scan feature
      • this setting applicable only at job level
      • Policy and Sandbox
      • Only applicable for Static scans, not DA
      • Default value is OFF
      • Persist value
      • Maintain backwards compatibility with previous implementation which was a boolean vs. integer
      • Log appropriate messaging that identifies the scan being deleted, error encountered
      • Meaningful unit tests are created and pass

            sbuhary Shihaaz Buhary
            sbuhary Shihaaz Buhary
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: