Skip to content

How buildRetention works? #377

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
vleungcrypto opened this issue Sep 10, 2020 · 0 comments
Open

How buildRetention works? #377

vleungcrypto opened this issue Sep 10, 2020 · 0 comments
Labels
question Further information is requested

Comments

@vleungcrypto
Copy link

The buildRetention object is:

"buildRetention" : { // Build retention information
"deleteBuildArtifacts" : true, // Automatically remove build artifacts stored in Artifactory (true/false)
"count" : 100, // The maximum number of builds to store in Artifactory.
"minimumBuildDate" : 1407345768020, // Earliest build date to store in Artifactory
"buildNumbersNotToBeDiscarded" : [ ] // List of build numbers that should not be removed from Artifactory
},

Q1: Is there any REST api or JFrog cli that can retrieve the buildNumbersNotToBeDiscarded and other buildRetention properties from a project?
Q2: If in myProject (release build, build number 10), we set buildNumbersNotToBeDiscarded to be [ "10" ]. Then in my up coming release build (say build number 20). Should I set the buildNumbersNotToBeDiscarded to be [ "10", "20" ]?
Q3: Can count set to be unlimited, is -1 means unlimited?
Q4: If in myProject build #10, we set count = 200, then in build #20, we set count = 500. Does it means the Artifactory will store 500 builds?
Q5: Any wiki page provide more info about buildRetention?

Thanks.

@vleungcrypto vleungcrypto added the question Further information is requested label Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant