capabilities.work

Provision Repository and Deploy Artifact

A 3-step recipe with JFrog Artifactory. We can help you get access.

Recipe · 3 steps

Provision Repository and Deploy Artifact

Create a local repository then deploy and verify an artifact in it.

  1. Create or replace a local repository with the requested key and package type so artifacts have a place to be deployed.
  2. Upload the artifact content to the requested path inside the newly created repository.
  3. Read the storage info for the deployed path to confirm the artifact is present and report its checksums and size.
What you'll need to have ready
  • accessToken: Bearer access token for authenticating with Artifactory.
  • repoKey: The repository key to create (e.g. libs-release-local).
  • packageType: The package type for the repository (e.g. maven, npm, docker, generic).
  • description: Optional human-readable description for the repository.
  • itemPath: The path within the repository to deploy the artifact to.
  • artifactContent: The raw artifact bytes to deploy.
For your developer

Arazzo workflow artifactory:provision-repository-and-deploy-artifact, 3 operations: createOrReplaceRepository → deployArtifact → getStorageInfo. Specs on APIs.io.