Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Publish report to local filesystem #846

Closed
noorul opened this issue Nov 24, 2022 · 7 comments
Closed

Publish report to local filesystem #846

noorul opened this issue Nov 24, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@noorul
Copy link
Contributor

noorul commented Nov 24, 2022

Is your feature request related to a problem? Please describe.
Today there is no option to publish the report to CI system like Jenkins. The only option available is the cloud. See the discussion comment #841 (reply in thread)

Describe the solution you'd like
Provide an option to publish the report to the local filesystem.

Describe alternatives you've considered
We do not want to publish to datree cloud service

@noorul noorul added the enhancement New feature or request label Nov 24, 2022
@adifayer
Copy link
Contributor

adifayer commented Nov 28, 2022

@noorul What report do you refer to, do you mean the results of the policy check (CLI output)?
image

@noorul
Copy link
Contributor Author

noorul commented Nov 28, 2022

Yes

@adifayer
Copy link
Contributor

So the requested feature is to be able to write the CLI output to a local path? If so, it can be achieved by piping datree test result to a local path: datree test [path] > [local-file-path]
Does that solve this one? :) @noorul

@noorul
Copy link
Contributor Author

noorul commented Dec 1, 2022

That is not what I am looking for. Exporting to a more widely used format like HTML.

@hadar-co
Copy link
Contributor

hadar-co commented Dec 1, 2022

@noorul We currently do not support HTML as an option for the output format, but we do support the following: yaml, json, xml, JUnit, sarif

To use these, pass the -o option to the CLI followed by your desired output, for example:
datree test file.yaml -o json

@adifayer
Copy link
Contributor

adifayer commented Dec 1, 2022

@noorul Would you like to have the output of a single policy check in HTML format? I'm not sure I fully understand the use case, why do you want to have it HTML?

@noorul
Copy link
Contributor Author

noorul commented Dec 1, 2022

The use case is to publish the result in Jenkins CI. I think maybe JUnit can be leveraged for this. I am closing this for the time being.

@noorul noorul closed this as completed Dec 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants