Skip to content

Support for writing diagnostic archive file to a custom path#1802

Open
sig-abyreddy wants to merge 4 commits into
masterfrom
dev/abyreddy/IDETECT-5023
Open

Support for writing diagnostic archive file to a custom path#1802
sig-abyreddy wants to merge 4 commits into
masterfrom
dev/abyreddy/IDETECT-5023

Conversation

@sig-abyreddy

Copy link
Copy Markdown
Contributor

Description

Support for writing diagnostic archive file to a custom path via detect.diagnostic.archive.path property.

Changes

  • Add a new property named detect.diagnostic.archive.path to accept a custom ouput path for diagnostic zip.
  • Copying the archive file to the custom path (if specified) post the diagnostic zip creation.

IDETECT-5023

@sig-abyreddy sig-abyreddy marked this pull request as draft June 30, 2026 09:41
@sig-abyreddy sig-abyreddy marked this pull request as ready for review June 30, 2026 09:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for copying the diagnostic archive to a user-specified location via a new detect.diagnostic.archive.path property, and documents the feature for users.

Changes:

  • Introduces detect.diagnostic.archive.path (versioned as 12.0.0) and documents it in troubleshooting + release notes.
  • Updates DiagnosticSystem.finish() to copy the generated diagnostic zip to the configured custom path.
  • Adds a new system test covering custom archive-path behavior.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/main/java/com/blackduck/integration/detect/workflow/diagnostic/DiagnosticSystem.java Adds post-zip-creation copy step to a configured custom path.
src/main/java/com/blackduck/integration/detect/configuration/DetectProperties.java Defines new detect.diagnostic.archive.path property and help text.
src/main/java/com/blackduck/integration/detect/configuration/DetectPropertyFromVersion.java Adds VERSION_12_0_0 for property versioning.
src/test/java/com/blackduck/integration/detect/workflow/diagnostic/DiagnosticSystemTest.java Adds tests for copying (and not copying) the diagnostic zip.
documentation/src/main/markdown/troubleshooting/diagnosticmode.md Documents the new property for diagnostic mode usage.
documentation/src/main/markdown/currentreleasenotes.md Adds a release note entry for the new property.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread documentation/src/main/markdown/troubleshooting/diagnosticmode.md
Comment thread documentation/src/main/markdown/currentreleasenotes.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants