ARTIFACTORY: How to Update the Creation Timestamp of a Moved or Copied Package in Artifactory to Reflect the Operation Time

Products
Frog_Artifactory
Content Type
Administration_Platform
AuthorFullName__c
Roi Niv
articleNumber
000006710
FirstPublishedDate
2025-12-09T13:22:15Z
lastModifiedDate
2025-12-09

ARTIFACTORY: How to Update the Creation Timestamp of a Moved or Copied Package in Artifactory to Reflect the Operation Time

When a package is copied or moved from one repository to another within Artifactory, the system retains the package’s original creation timestamp, which reflects the time the package was initially deployed to the source repository. 

This behavior means that, regardless of the actions taken during the transfer, the creation timestamp does not change. Consequently, if there is a retention policy configured for the target repository, the package will be evaluated for deletion based on its original creation timestamp. This design choice ensures consistency in how packages are managed, but it can lead to scenarios where packages are getting deleted, especially when specific retention policies are in place.

To offer greater flexibility starting from Artifactory version 7.125.0, a new capability has been introduced that allows users to adjust this default behavior. By enabling the following system property:
artifactory.update.file.created.timestamp=true

 

Artifactory can be configured to update the creation timestamp of any package that is copied or moved to reflect the exact time of the operation in the target repository. This change can be particularly helpful in environments where the timing of package retention is crucial to compliance and maintenance efforts.

It is important to note that while this feature enhances the management of packages, it only applies to newly copied or moved packages. Existing packages that have already been transferred will retain their original timestamps and will not be affected by this system property. As such, if you wish to apply this change to legacy packages, they will need to be re-copied or re-moved after enabling the property.

This functionality provides a more intuitive approach to timestamp management and improves the alignment between package movements and repository retention policies, giving teams better control over their package lifecycle and management processes.