Skip to content
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

Adds support for reloading json file without full redeployment #427

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion cleanup/artifactCleanup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,16 @@ The plugin have 4 control options:
- `resume`: Resume normal execution. Example:

`curl -X POST -v -u admin:password "http://localhost:8080/artifactory/api/plugins/execute/cleanupCtl?params=command=resume"`
- `adjustPaceTimeMS`: Modify the running delay factor by increasing/decreasing the delay value. Example:
- `adjustPaceTimeMS`: Modify the running delay factor by increasing/decreasing the delay value.

This plugin's default case will safely resume execution, which will allow it to reload the artifactCleanup.json config
file.
Helpful on a k8 cluster where you don't want to have to reload the pods and redeploy the plugin to pick up changes to the
accompanying json file. Just
pass a non-recognized control option. Example:

`curl -X POST -v -u admin:password
"http://localhost:8080/artifactory/api/plugins/execute/cleanupCtl?params=command=RELOADJSON"`


For Artifactory 4.x
Expand Down
1 change: 1 addition & 0 deletions cleanup/artifactCleanup/artifactCleanup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ executions {
break
default:
log.info "Missing or invalid command, '$command'"
break
}
}
}
Expand Down