replicate_resource

JFrog Pipelines Documentation

ft:sourceType
Paligo

Description

This command takes an input resource and creates an exact copy. This helps you to transfer metadata from one step to the next.

Usage

Shell

Function

Bash

replicate_resource <from_resource> <to_resource> [--options]

PowerShell

replicate_resource <from_resource> <to_resource> [-options]

  • from_resource is the name of the inputResources resource that you're copying from.

  • to_resource is the name of the outputResources resource that will receive the replicated data from the from_resource.Any pre-existing files or key-value pairs in the to_resource will be replaced.

  • match-settings option should be set when you want the replication to adhere to any branch/tag settings in the to_resource. For example, If your from_resource gitRepo can trigger on both commits and pull requests, but you only want to update your to_resource on commits, you can replicate with --match-settings, and the to_resource will only be updated when the from_resource had a commit.