retry_command

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide
ft:sourceType
Paligo

Description

Execute any command up to three times if it returns a non-zero error code. This is useful when you need to execute a command that can be flaky as a result of network hiccups, for example.

Usage

Shell

Function

Bash

retry_command <shell command>

PowerShell

retry_command <shell command>

  • shell command is the command to be retried