Step 1: Create a Spec File to Return the Given Artifacts

ARTIFACTORY: An Advanced Approach to Move/Copy Artifacts

AuthorFullName__c
Sam Rosenstein
articleNumber
000005419
FirstPublishedDate
2022-09-20T12:00:47Z
lastModifiedDate
2025-05-14
VersionNumber
3
The spec file, in this case, has two mandatory parameters: aql/pattern and target:
  • "pattern" or "aql" : the aql query to generate the artifacts that will be moved
  • "target" : target location on Artifactory to which the artifacts will be moved
The exact file spec schema for move commands can be found here.

Here’s an example filespec which will copy all of the artifacts in generic-local to generic-local-2
{
    "files": [
     {
        "aql": {
            "items.find" : {
                "repo":"generic-local"
            }
        },
        "target" : "generic-local-2/"
     }
    ]
}
For more details regarding the possible AQL queries, please refer to AQL documentation.