Artifactory retention set but not deleteBuildArtifacts, what happens?

Viewed 354

When uploading artifacts to JFrog artifactory, one might set the retention to e.g. a maximum number of days. On can also set the boolean deleteBuildArtifacts: true. If not setting the latter, what will happen after the retention time has passed? Will the garbage cleaning take care of the artifacts next time it runs?

def server = Artifactory.server(...)
def buildInfo = Artifactory.newBuildInfo()
buildInfo.retention maxDays: 10
server.upload(..., buildInfo)
server.publishBuildInfo(buildInfo)

I have read the scripted pipeline syntax documentation about the Triggering Build Retention, but could not find the answer.

The reason I'm asking, apart from being curious, is because the user uploading the artifacts does not / should not have DELETE/OVERWRITE permission (there can however be other service users having it).

1 Answers
Related