Download Artifact

The Download Artifact step type enables you to deploy updates to your devices by specifying a path in JFrog Artifactory to a destination path on your device.

The Download Artifact step type enables you to create a flow that pulls artifacts from your Artifactory instance and deploys them to your edge devices. You can one or multiple artifact actions in an update flow.

Deployments using Artifactory consider the checksums of the files delivered. Therefore, the devices will pull only the diffs when downloading updates to files.

Prerequisites

  • JFrog Connect and JFrog Platform accounts.

  • Connect Agent 6.0 or later and at least one device registered.

  • One or more files ready for deployment and stored in your Artifactory repository.

  • In the Create Update Flow procedure, completed through Step 3.

Add a Step and Configure the Step Type

To add a step and configure the step type you have chosen, do the following:

  1. In the Create New Flow page, click Add Step.

  2. In the Step Type dropdown list, choose Download Artifact, give the step a Step Name, and create the step.

  3. JFrog Registry: Choose the JFrog Registry where your artifact is stored. If the registry does not appear in the list, go to Add JFrog Registry to add yours to the list. Then return to this configuration and the added registry will appear in the list.

  1. Artifactory Path: Enter the path of your artifact (i.e., the Artifactory Repository Path in your Artifactory repository). The path usually has a structure like the following: repository-name/artifact/version/file.txt. You can also make all or part of the path a parameter. For example, you could make the version folder a parameter: generic-repo/artifact/{{version}}/file.text. Then you enter the version value when the actual deployment is run.

  2. Device Path: Enter the destination path on the device. The directory on the device must exist beforehand or the update will fail. Connect does not automatically create directories when deploying updates. You may create a folder using the Run Command step type.

  1. If you want to deliver more than one artifact, add a new step for each artifact.

  2. Configure your On Failure policy and instructions for rolling back.

  3. Save your step configuration.

What’s Next?

Learn how to build a workflow using a Download Release Bundle.

Was this helpful?