LogoLogo
What's New?Connect Agent ReleasesBook a DemoPricing
  • Documentation
  • Developers
  • Administration
  • OVERVIEW
    • JFrog Connect Overview
      • Architecture Overview
        • Connect Agent
        • Connect & JFrog Platform
      • Plan Your Update Strategy
        • Software Update Objectives & Concepts
        • Software Update Process & Procedures
  • Get Started
    • Create JFrog Connect Account
    • Log in to JFrog Connect
    • Network Requirements
    • Register Device
  • Manage your Fleet
    • Register Devices at Scale
      • Freeze Image on Device
      • Build Image with Agent
    • Register & Update Device at Once
    • Organize Your Fleet
      • Create Project
      • Move Device between Projects
      • Create Groups
        • Add Device to Group
        • Add Many Devices to Group
        • Change Group Name
        • Delete Group
      • Tag Devices
        • Remove a Tag
      • Remove Many Devices
  • Devices
    • Fleet Overview
      • Filter Devices
      • Locate Devices
    • Device Details
      • Delete a Device
      • Block Updates with Update Trigger
    • Update Connect Agent
    • Delete Many Devices
  • Deployment
    • Create Update Flow
      • Actions
        • Run Command
        • Run Script
        • Deploy File
        • Deploy Docker
          • Use Docker Image
          • Use Docker Compose
          • Get Artifactory Parameters
        • Clone Git Repository
        • Download Artifact
          • Get Artifactory Path
        • Download Release Bundle
          • Get Artifactory Parameters for Release Bundle
        • Update Image
        • Install Debian Package
          • Get Artifactory Parameters for Debian
      • Use Update Parameters
      • On Failure & Rollback
      • Vulnerability Scans
      • Sample Use Case: Build Update Flow for Reuse
    • Deploy Software
      • Set Application & Version
      • Set Alert upon Failure
      • Set Phased Rollout
      • View Deployment Progress
        • Detailed Deployment Information
        • Abort a Deployment
      • Deploy in Groups
      • Sample Use Case: Deploy Docker Images to Devices
  • Tools
    • Remote Tools
      • Use Terminal
      • Open Port Tunnel Session
        • Access with VNC
        • Connect with SSH
        • Access Device Web Applications
      • Run Commands Remotely
        • Run Command as Non-Root User
      • Get Device Files (Fetch Files)
    • Alerts
      • Create Channel
      • Set Webhook
    • Monitor
      • Resource Monitor
      • Process Monitor
  • Releases
    • What's New?
    • Connect Agent Release Notes
  • Troubleshooting
    • Connect Server Status
    • Troubleshoot Topics
      • Device Registration
      • Terminal Troubleshooting
Powered by GitBook
On this page
  • Example: Update Binaries on Device
  • Prerequisites
  • Drag the Action
  • Configure the Action
  • What’s Next?

Was this helpful?

Export as PDF
  1. Deployment
  2. Create Update Flow
  3. Actions

Run Script

The Run Script action enables you to run a bash script on your edge device.

You might have several reasons to use the Run Script action, such as preparing the edge devices for installing a new software version or doing some special tasks after a version has been received. You may also have scripts that help to resolve issues in a software version that is running on the device.

Exit codes are utilized to confirm the successful execution of a script and ensure that the procedure completed without encountering any errors.

Example: Update Binaries on Device

Actions (in order)
Task

Run Command

Copy and save device-specific configuration files

Download Artifacts

Pull your update binaries from Artifactory

Run Command

Unzip file with your binary artifacts

Run Command

Change user permissions for your application

Run Script

Run Command

Restart service that runs your application

Prerequisites

  • JFrog Connect account and at least one device registered.

  • A script file ready for deployment.

Drag the Action

To include the Run Script action in your update flow, do the following:

  1. Go to Deployment in the left menu and click Create Update Flow.

  2. Drag the Run Script action and drop it in the workflow.

Configure the Action

Click the action to open and configure it.

  1. Enter a name for the action.

  2. Enter (drag and drop or browse) the script file in the script box.

  1. Enter the following:

    • Binary Path: The path on the device where the script should run.

    • Script Arguments: The values required for script arguments.

    • Expected Exit Code: Success is usually 0 in Linux shell systems, but it could be different depending on the specific command or script.

  1. Save your action configuration.

You can run additional actions in the workflow.

What’s Next?

PreviousRun CommandNextDeploy File

Last updated 4 months ago

Was this helpful?

Verifies configuration and runs tests. Parameters: Expected exit code: 0 If failed, rollback entire update (i.e., runs )

Configure your policy and instructions for rolling back, if necessary.

Learn how to deliver one or more files to your client devices using the action.

On Failure
Deploy Files
general rollback