Clone Git Repository
The Clone Git Repository action block enables you to pull your latest software version from a Git repository directly to your edge devices.
Last updated
The Clone Git Repository action block enables you to pull your latest software version from a Git repository directly to your edge devices.
Last updated
Connect's Update Flow enables your edge devices to clone from a Git repository whether you are using a public Git repository or your own private repository for your code.
When you use the Clone Git Repository action block, the edge devices will use the git clone command to pull your Git repo.
JFrog Connect account.
To include the Clone Git Repository action block in your update flow, do the following:
Go to Deployment in the left menu and click Create Update Flow.
Drag the Clone Git Repository action block and drop it in the workflow.
Click the action block to open and configure it.
Enter a name for the action block.
Private Repository: Mark this checkbox only if you are using a private Git repository.
Git Account: Choose the account where your repo exists. If the account is not in the list, you can add it according to the procedure in Link Git Account.
Device Directory Path: Enter the path where the git will be installed on the device, for example, /home/user/App
.
Remote Repository URL: Enter the URL of the git, for example, https://github.com/jfrog-connect/app-repo.git
.
Tip: The folder on the device must exist beforehand. Otherwise, the update will fail. Connect does not automatically create folders when deploying updates. You can create a folder using the Run Command action block.
Configure your On Failure policy and instructions for rolling back, if necessary.
Save your action block configuration.
For your On Failure policy, choose one of the actions for Connect to do in case the Clone Git Repository action block fails.
Continue Update Flow: If the Clone Git Repository 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.
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.
To enable Rollback functionality, your device's free memory must be greater than the update size. Use the relationship below to calculate the amount of free memory required.
Free Memory Required > Current Folder Size + Update Size + 10MB
Learn more about configuring your On Failure policy and instructions for rolling back.