Cloud customer?
Start for Free>
Upgrade in MyJFrog >
What's New in Cloud >





You are viewing an old version of this page. View thecurrent version.

Compare with CurrentView Page History

« PreviousVersion 9当前»

Overview

ARemoteFile再保险source enables using a file on a remote file server.


This resource holds information of a RemoteFile that is stored on the following registries:

  • JFrog Artifactory
  • AWS S3
  • Google Cloud Storage
  • File Server
Page Contents


YAML Schema

再保险sources: - name:  type: RemoteFile configuration: source:  fileLocation:  # optional fileName:  # optional fileDateTime:  # optional

Tags

name

Analphanumericstring (underscores are permitted) that identifies the resource.

类型

Must beRemoteFilefor this resource type.

configuration

Specifies all configuration selections for the resource.

Tag

Description

Required/Optional
source

The name of an integration of one the following types:

Required
fileLocation

Directory path on the remote file server where the file is located

Once aRemoteFile再保险source has been created, thefileLocationattribute cannot be changed, since Pipelines maintains a history of versions for that file location.

If the file location needs to be changed, create a newRemoteFile再保险source with the new location and then update your pipelines to reference the newRemoteFile再保险source.

Optional
文件名

The name of the file

Once aRemoteFile再保险source has been created, the文件名attribute cannot be changed, since Pipelines maintains a history of versions for that file name.

If the file name needs to be changed, create a newRemoteFile再保险source with the new name and then update your pipelines to reference the newRemoteFile再保险source.

Optional
fileDateTime The date and time of the file Optional

Environment Variables

WheneverRemoteFileis used in a step, a set of environment variables is automatically made available that you can use in your step.

Environment Variable Description
再保险s__name Name of the resource
再保险s__source_name Name of the integration the file is associated with
再保险s__fileLocation The directory containing files for the resource
再保险s__fileName The name of the file
再保险s__fileDateTime The date and time of the file

Examples

再保险sources: - name: RemoteFile_1 type: RemoteFile configuration: source: s_artifactory fileLocation: example-repo-local/setup/help # optional fileName: something.txt # optional fileDateTime: 19/12/19 # optional pipelines: - name: pipelines_1 steps: - name: REFILE_1 type: PowerShell configuration: nodePool: win_2019 integrations: - name: s_artifactory outputResources: - name: RemoteFile_1 execution: onExecute: - write-output "executing step..." - jfrog rt dl example-repo-local/setup/test.sh
  • 没有标签
Copyright © 2023 JFrog Ltd.