Skip to content

Conversation

@mnsboev
Copy link
Collaborator

@mnsboev mnsboev commented Aug 10, 2025

…lete evidence by evidenceName

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • Appropriate label is added to auto generate release notes.
  • I used gofmt for formatting the code before submitting the pull request.
  • PR description is clear and concise, and it includes the proposed solution/fix.

Description:
This PR is the part of the two PRs which introduce a new command for the jf evd CLI tool that allows users to delete evidence based on specific criteria. The new delete command resolves the subject and facilitates the deletion of evidence using its name.

jfrog-client-go PR: jfrog/jfrog-client-go#1158

The command uses the same subject definition as create and verify commands.
The output of help command:

Name:
  jf evd delete-evidence -  Delete evidence associated with a specified subject by evidence name. 

Usage:
  jf evd delete-evidence [command options] --evidence-name=<value>
  
Options:
  --access-token              [Optional] JFrog access token.
  --build-name                [Optional] Build name.
  --build-number              [Optional] Build number.
  --evidence-name             [Mandatory] Evidence file name.
  --package-name              [Optional] Package name.
  --package-repo-name         [Optional] Package repository Name.
  --package-version           [Optional] Package version.
  --project                   [Optional] Project key associated with the created evidence.
  --release-bundle            [Optional] Release Bundle name.
  --release-bundle-version    [Optional] Release Bundle version.
  --server-id                 [Optional] Server ID configured using the config command.
  --subject-repo-path         [Optional] Full path to some subject location.
  --url                       [Optional] JFrog Platform URL.
  --user                      [Optional] JFrog username

Example of call:
jf evd delete --release-bundle mishas_bundle --release-bundle-version 45 --evidence-name release-bundle-signature-1753360796034-204c2ab4.json

@mnsboev mnsboev added the new feature Automatically generated release notes label Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant