Support downloading artifacts from a Nexus repository

Description

Users would like to be able to download artifacts directly from Nexus repositories. The first cut should have the following features:

  • Downloads from unauthenticated servers

  • Proxy support

  • Checksum validation via metadata to preserve bandwidth

  • Nexus 3.15.0+ support

  • Ability to grab the latest version of an artifact

This has the potential to be added to the native file resource in the future, but we need to get the basics working prior to attempting that.

An example curl of representative information is as follows:

curl -X GET 'https://nexus3.onap.org/service/rest/v1/search?repository=docker.io&name=rancher/rke-tools

Which produces:

Take care to honor the pagination strategy with an option to sleep for a number of seconds (including fractional) to prevent server overload.

Acceptance Criteria

None

Labels

None

Epic Link

None

Story Points

None

Priority

Medium
Configure