Skip to content

Commit

Permalink
Merge pull request #1157 from jfrog/improve-cleanup-policy-doc-example
Browse files Browse the repository at this point in the history
Improve cleanup policy TF example
  • Loading branch information
alexhung authored Dec 20, 2024
2 parents f70cc4c + 60d5cf0 commit 9c1e50e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/resources/package_cleanup_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ resource "artifactory_package_cleanup_policy" "my-cleanup-policy" {
search_criteria = {
package_types = [
"docker",
"gradle",
"maven",
]
repos = [
Expand All @@ -37,11 +38,10 @@ resource "artifactory_package_cleanup_policy" "my-cleanup-policy" {
excluded_repos = ["gradle-global"]
include_all_projects = false
included_projects = []
included_packages = ["com/jfrog"]
excluded_packages = ["com/jfrog/latest"]
included_packages = ["com/jfrog/**"]
excluded_packages = ["com/jfrog/latest/**"]
created_before_in_months = 1
last_downloaded_before_in_months = 6
keep_last_n_versions = 0
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ resource "artifactory_package_cleanup_policy" "my-cleanup-policy" {
search_criteria = {
package_types = [
"docker",
"gradle",
"maven",
]
repos = [
Expand All @@ -19,10 +20,9 @@ resource "artifactory_package_cleanup_policy" "my-cleanup-policy" {
excluded_repos = ["gradle-global"]
include_all_projects = false
included_projects = []
included_packages = ["com/jfrog"]
excluded_packages = ["com/jfrog/latest"]
included_packages = ["com/jfrog/**"]
excluded_packages = ["com/jfrog/latest/**"]
created_before_in_months = 1
last_downloaded_before_in_months = 6
keep_last_n_versions = 0
}
}

0 comments on commit 9c1e50e

Please sign in to comment.