Skip to content

Add a flag to export the output of jf audit command in a file. #360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shashwathrai opened this issue Aug 29, 2023 · 1 comment
Open
Labels
feature request New feature or request

Comments

@shashwathrai
Copy link

Is your feature request related to a problem? Please describe.
Add a flag to export the output of jf audit command in a file. From the command line, we can export the output to a file using the > command. However in the Jenkins pipeline script to run the command within sh we need to provide the actual path of the JFrog CLI installation. For example:
sh "/Users/shashwathr/.jenkins/tools/io.jenkins.plugins.jfrog.JfrogInstallation/jf/jf audit xxx > $WORKSPACE/audit-report.json"

Describe the solution you'd like to see
Any flag to export the data into a file within JFrog CLI.

Describe alternatives you've considered
We can provide the actual path of the JFrog CLI installation.

@shashwathrai shashwathrai added the feature request New feature or request label Aug 29, 2023
@tim-goto
Copy link

tim-goto commented Aug 8, 2024

This would be useful not only for the audit subcommand but any command really.. especially in the context of the new jfrog jenkins plugin I could not find a way to reliably parse the output of the jf command (piping to file doesn't work since you need to run the commands in the jf step not in a sh, tee also writes the summary line, ...)

@shuvadipc shuvadipc transferred this issue from jfrog/jfrog-cli Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants