jfrog / terraform-provider-xray

Terraform provider to manage JFrog Xray
https://jfrog.com/xray/
Apache License 2.0
149 stars 12 forks source link

Add support for repository retention policies #77

Closed jamestoyer closed 1 year ago

jamestoyer commented 2 years ago

In Xray v3.41.4 support for retention periods for scans was added. This allows for configuration of the number of days scans should be kept for, as well as being able to set retention periods based on specific ant patterns. The latter is useful for removing source jars from maven scans.

The Xray API supports this [1][2] and a resource (or resources) for this should be added to the Xray provider to support this.

[1] https://www.jfrog.com/confluence/display/JFROG/Xray+REST+API#XrayRESTAPI-UpdateRepositoriesConfigurations [2] https://www.jfrog.com/confluence/display/JFROG/Xray+REST+API#XrayRESTAPI-GetRepositoriesConfigurations

alexhung commented 2 years ago

@jamestoyer Thanks for the request. We'll add this to our schedule.

danielmkn commented 1 year ago

@jamestoyer, it's released in v1.7.0, thanks for the ticket!