Download Artifacts
The Download Artifacts action block enables you to deploy updates to your devices by specifying a path in JFrog Artifactory to a destination path on your device.
Last updated
The Download Artifacts action block enables you to deploy updates to your devices by specifying a path in JFrog Artifactory to a destination path on your device.
Last updated
The Download Artifacts action block enables you to create a workflow that pulls artifacts from your Artifactory instance and deploys them to your edge devices. You can deploy one or multiple artifacts using a single action block.
Deployments using Artifactory consider the checksums of the files delivered. Therefore, the devices will pull only the diffs when downloading updates to files.
JFrog Connect and JFrog Platform accounts. (You receive a JFrog Platform account automatically when you register for a JFrog Connect account.)
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.
To include the Download Artifacts action block in your update flow, do the following:
Go to Deployment in the left menu and click Create Update Flow.
Drag the Download Artifacts action block and drop it in the workflow.
Click the action block to open and configure it.
Enter a name for the action block.
Choose the JFrog Platform account where your artifacts are stored. If your account name does not appear in the list, click Add (+) to add yours to the list.
Enter the Artifactory Path, for example, generic-repo/1.0/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/{{version}}/file.text
. Then you enter the version value when the actual deployment is run.
If you want to deliver more than one file, click Add (+). Add an additional row for each additional file to deliver.
Enter the Destination Path on Device. The directory on the device must exist beforehand, otherwise, the update will fail. Connect does not automatically create directories when deploying updates. You may create a folder using the Run Command action block in the General Section.
Configure your On Failure policy and instructions for rolling back, if necessary.
Save your action block configuration.
If you want the action block to pull content from an Artifactory Edge account, complete the procedures in Link to Artifactory Edge.
For your On Failure policy, choose the actions for Connect to do in case the Download Artifacts action block fails.
Continue Update Flow: If the Download Artifacts action block fails, Connect will simply continue with the next action block in the update workflow.
Run General Rollback: The action block and the entire update workflow are rolled back.
Do Action: The action to do when this action block is rolled back. In this case, the action is to revert all files.
As a general precaution, Connect Agent creates a backup of the relevant device folder in a temporary location. If a rollback is required, the agent restores the folder to its initial state.
In order to enable Rollback functionality, your device's free memory must be greater than the update size. To calculate the amount of free memory required, use the relationship below:
Free Memory Required > Current Folder Size + Update Size + 10MB
Learn how to build a workflow using a Download Release Bundle.