Backup Pinned Artifacts

Just like the title says, I'm exploring the feasibility of backing up artifacts for pinned builds only.

It's very easy to script the creation of a tar archive to capture the entire artifacts directory, and minimize disk usage by using --listed-incremental. The end result is still a very large tar archive, and some (many?) of those builds are temporary/development builds that are not of great long-term value to my org.

Presumably the REST API can be used to query for pinned builds, and the path to artifacts can be determined by further drilling into the details for pinned builds, and then those listed paths can be used as the basis for a new backup archive. However, the building of such a script may not be justifiable from a business perspective.

Is there an existing method/plugin with which to backup only artifacts associated with pinned builds?

Please sign in to leave a comment.