Page History
bump_semver
Description
Increments the provided
Newtablink | ||||
---|---|---|---|---|
|
Usage
bump_semver <semver string> <action>
semver string
is the semver version to be incrementedaction
is the type of increment to be applied
The valid actions are:
- major: Increment the major version. The minor and patch versions are reset to 0.
- minor: Increment the minor version. The patch version is reset to 0.
- patch: Increment the patch version.
- alpha: Increment or add an
alpha
pre-release tag. For example,v1.1.1
becomesv1.1.1-alpha
andv1.1.1-alpha
becomesv1.1.1-alpha.1
. Any other pre-release tags will be removed. - beta: Increment or add a
beta
pre-release tag. For example,v1.1.1
becomesv1.1.1-beta
andv1.1.1-beta
becomesv1.1.1-beta.1
. Any other pre-release tags will be removed. - rc: Increment or add an
rc
pre-release tag. For example,v1.1.1
becomesv1.1.1-rc
andv1.1.1-rc
becomesv1.1.1-rc.1
. Any other pre-release tags will be removed. - final: Remove any pre-release tags, leaving
major.minor.patch
.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
replace_envs
Description
Replaces variables in a file with values based on your current shell env
. This is useful to create config files from templates, for example.
If the file contains placeholders that are not defined in the environment, they will become empty strings (“”). The original file is overwritten with the modified file.
Usage
replace_envs <filename1> <filename2> <filenameN>
where your files have placeholders in the format $ENVIRONMENT_VARIABLE_NAME
or ${ENVIRONMENT_VARIABLE_NAME}
.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
retry_command
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
Bash | retry_command "<shell command>" |
PowerShell |
|
shell command
is the command to be retried
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
get_uuid
Description
Puts a uuid to stdout. Uses /proc/sys/kernel/random/uuid
if available and falls back to uuidgen
if not. The function calls exit 1
if neither of these are available.
Usage
Bash | get_uuid |
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
save_artifact_info
Description
Saves metadata about an artifact. When saved, this metadata is used to enable signed pipelines for the artifacts.
Usage
Bash | save_artifact_info <artifact type> <file path> [--build-name <build name> --build-number <build number> --project-key <project key>] |
PowerShell | save_artifact_info <artifact type> <file path> [-build-name <build name> -build-number <build number> -release-bundle-name <name> -release-bundle-version <version> -project-key <project key>] |
artifact type
: This is the type of artifact. Eitherfile
,buildInfo
, orreleaseBundle
.file path
: This is the path to the metadata file to be saved.
Bash | Powershell | Description |
---|---|---|
--build-name | -build-name | This is name of the build. Required when artifact type is |
--build-number | -build-number | This is number of the build. Required when artifact type is |
--release-bundle-name | -release-bundle-name | This is name of the Release Bundle. Required when artifact type is |
--release-bundle-version | -release-bundle-version | This is version of the Release Bundle. Required when artifact type is |
--project-key | -project-key | (optional) Defaults to the environment's project_key . Can be specified to save info for a different project. |
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
|
Expand | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
validate_artifact
Description
Validates the signature of an artifact. Requires signed pipelines to be enabled.
Usage
Bash | validate_artifact <artifact type> <file path> [--build-name <build name> --build-number <build number> --project-key <project key>] |
PowerShell | validate_artifact <artifact type> <file path> [-build-name <build name> -build-number <build number> -project-key <project key>] |
artifact type
: This is the type of artifact. Eitherfile
orbuildinfo
.file path
: This is the path to the metadata file to be validated.
Bash | Powershell | Description |
---|---|---|
--build-name | -build-name | This is name of the build. Required when artifact type is |
--build-number | -build-number | This is number of the build. Required when artifact type is |
--project-key | -project-key | (optional) Defaults to the environment's project_key . Can be specified to validate info for a different project. |
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
|
Expand | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
|
configure_jfrog_cli
Description
Configures the JFrog CLI (v1) with the provided credentials, handling the different formats for different minor versions. Artifactory integrations listed in the integrations section of the step will be automatically configured, but this may be useful for resources or if the credentials are provided to the step in another way.
Usage
Bash |
|
---|---|
PowerShell |
|
artifactory-url
: Required. The Artifactory URL.- user: The user. Required when an API key is provided.
apikey
: An API key. Requires --user and may not be used with --access-token.access-token
: An Access token. May not be used with --access-token or --user.server-name
: Defaults todefault
. Can be specified to configure the CLI with that name.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
cleanup_jfrog_cli
Description
Removes configuration for the JFrog CLI (v1), handling the different formats for different minor versions. Artifactory integrations listed in the integrations section of the step will be automatically removed at the end of the step, but this may be useful to remove the credentials earlier or when using configure_jfrog_cli
.
Usage
Bash |
|
---|---|
PowerShell |
|
server-name
: Defaults todefault
. Can be specified to remove that configuration.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Source Control
compare_git
Lists the files/directories containing changes within a commit range. This function is useful when building a monorepo (monolithic repository) to determine which services have changes.
Bash | compare_git [--path | --resource] [options] |
PowerShell |
|
path
is the file system path to a git repository.resource
is the name of the gitRepo resource.commit-range
option specifies the range of commits to look for changes (Example:HEAD~1..HEAD
).directories-only
option lists only the directories containing changes.depth
option returns file/folder at certain depth. Root directory has depth value 1.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Anchorupdate-commit-status update-commit-status
update_commit_status
update-commit-status | |
update-commit-status |
Description
Updates the
of the commit on the source provider. Status options are processing, success, and failure. Newtablink Text status URL https://developer.github.com/v3/repos/statuses/
Usage
Bash |
|
PowerShell |
|
update_commit_status <gitRepo resource name> --status <status> --message <message> --context <context>
gitRepo resource name
is the name of the gitRepo resource.status
is the status to be set on the source provider: processing, success, or failure.
If no status is specified:- processing will be assumed in
onStart
andonExecute
- success will be assumed in
onSuccess
- failure will be assumed in
onFailure
- processing will be assumed in
message
is the message (description) string to send with the status.
If no message is specified, the default message will be "Step <status> in pipeline $pipeline_name"context
is the context (key) for thestatus
. The source provider will retain only the latest status received for that context.
If no context is specified, the default is "$pipeline_name_$step_name"
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Test Reports
Anchorsave_tests save_tests
save_tests
save_tests | |
save_tests |
Description
Copies test reports given as input to later be parsed and uploaded (if file storage is available).
Usage
save_tests <file or directory>
file
ordirectory
specifies either a filename for the test report file, or a directory name for a directory of test report files
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Encryption
encrypt_string
Description
Uses the provided public key to encrypt the specified string.
Usage
Bash |
|
PowerShell | encrypt_string -key <path> <source string> |
key
is the fully qualified path of the public key filesource string
is the string to be encrypted
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
decrypt_string
Description
Uses the provided private key to decrypt the specified string.
This is typically used to decrypt information that was encrypted using encrypt_string
with the corresponding public key. It helps you avoid building your own encrypt-decrypt system.
Usage
Bash | decrypt_string --key <path> <encrypted string> |
PowerShell |
|
key
is the fully qualified path of the private key fileencrypted string
is the string to be decrypted
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
encrypt_file
Description
Uses the provided public key to encrypt the specified file to a new file.
Usage
Bash |
|
PowerShell | encrypt_file -key <path> [-output <filename>] <source filename> |
key
is the fully qualified path of the public key fileoutput
is the name of the resulting encrypted file. Defaults to “encrypted”source filename
is the file to be decrypted
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
decrypt_file
Description
Uses the provided private key to decrypt the specified file to a new file.
This is typically used to decrypt information that was encrypted using encrypt_file
with the corresponding public key. It helps you avoid building your own encrypt-decrypt system.
Usage
Bash | decrypt_file --key <path> [--output <filename>] <source filename> |
PowerShell |
|
key
is the fully qualified path of the private key fileoutput
is the name of the resulting decrypted file. Defaults to “decrypted”source filename
is the file to be decrypted
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Notifications
Anchor | ||||
---|---|---|---|---|
|
Description
Utilizes notification integration to send custom messages at any time during the build to any recipient.
Usage
send_notification <integration> [options]
The options can be specified as part of the command, or defined as environment variables before the command is issued.
The command line arguments take priority over the environment variables.
Command line options
AirBrake
Creates an AirBrake deployment through an Airbrake Integration. Not supported in PowerShell.
Bash | Option Description |
---|---|
--project-id | the project ID to send the notification for |
--environment | the environment value to use when posting the deployment |
--username | used when posting an AirBrake deployment |
the email to be used when posting the AirBrake deployment | |
--repository | the repository to use when posting the AirBrake deployment |
--revision | the deployment revision |
--version | the version to use when posting the AirBrake deployment |
--type | currently only type “deploy” is supported |
--description | description of the deployment |
--payload | path to a valid JSON file that contains a payload to use to POST the AirBrake deployment |
Jira
Creates a Jira issue (also known as a ticket).
Bash | Powershell | Option Description | ||||||
---|---|---|---|---|---|---|---|---|
--project-id | -project-id | the Project Key of the project to associate the new issue with. The project key is the short string that begins all issue numbers for the project (e.g., "EXAMPLE-1234") | ||||||
--type | -type | the issue type for the new issue (e.g., "Bug", "Task", etc.). This string must be one of the | ||||||
--summary | -summary | a string for the new issue's Summary field (it's title) | ||||||
--description | --description | (optional) a string for the new issue's Description field | ||||||
--attach-file | --attach-file | (optional) a path to a file that you’d like to attach to the issue |
NewRelic
Creates a NewRelic deployment through a NewRelic Integration. Not supported in PowerShell.
Bash | Option Description |
---|---|
--type | the type of object to be posted. At the moment, only “deployment” is supported |
--description | description of the deployment |
--username | the user recording the deployment. Defaults to “JFrog Pipelines” |
--changelog | the changelog value to use in the deployment |
--revision | the deployment revision (required) |
--appId | the ID of the app being deployed. If not provided, --appName must be present |
--appName | the name of the app being deployed. If not provided, --appId must be present |
--payload | path to a valid JSON file that contains a payload to use to POST the NewRelic deployment |
PagerDuty Events
Sends an event through a PagerDuty Events Integration.
Bash | Powershell | Option Description |
---|---|---|
--text | -text | The main text to display in the event on PagerDuty. |
Slack
Sends a message on Slack through a Slack Integration.
Bash | Powershell | Option Description |
---|---|---|
--payload | -payload | (optional) A path to a valid json file to act as the payload of the message. If a payload is provided, all other parameters are ignored. This payload is directly sent to Slack, so please view the Slack API documentation for information on how the payload should be formatted. |
--username | -username | (optional) shows in the heading of the Slack message |
--pretext | -pretext | (optional) a string that becomes the first part of the Slack message. Defaults to current date/time |
--text | -text | (optional) the main text to display in the message. |
--color | -color | (optional) hex string that changes the color of the status bar to the left of the Slack message. |
--recipient | -recipient | (optional) the target of the message. Should start with “@” or “#” for user or channel, respectively. |
--icon-url | -icon-url | (optional) the url of the icon to show next to the message |
smtpCreds (email)
Sends an email through an SMTP Credentials Integration.
Bash | Powershell | Option Description |
---|---|---|
--recipients | -recipients | one or more email addresses |
--subject | -subject | (optional) add a message to the subject. Does not replace the default subject |
--body | -body | (optional) specify some text to add to the body of the email. Does not replace the existing body information |
--status | -status | (optional) can be set to a valid status string. By default it will be set based on the section of scrip the command is executed in. |
--attachments | -attachments | (optional) a list of files to attach to the email. Combined total of all files cannot exceed 5MB |
--attach-logs | -attach-logs | (optional) ‘true’ or ‘false’. Defaults to false. All available logs for the step will be attached to the email. Note that it can only attach logs that have already been created, so using this option in the onStart section, for example, would not have very detailed logs. |
--show-failing-commands | -show-failing-commands | (optional) 'true’ or ‘false’. Defaults to false. The existing logs for the step will be parsed. Any failed command that is detected will be added to the body of the email, along with up to 100 preceding lines (if printed from the same command) |
Environment Options
All of the above options can also be included as environment variables instead of arguments. The command line argument will have priority over the environment. Here is the full list of ENVs:
NOTIFY_USERNAME
(--username/-username)NOTIFY_PASSWORD
(--password/-password)NOTIFY_RECIPIENT
(--recipient/-recipient)NOTIFY_PRETEXT
(--pretext/-pretext)NOTIFY_TEXT
(--text/-text)NOTIFY_COLOR
(--color/-color)NOTIFY_ICON_URL
(--icon-url/-icon-url)NOTIFY_PAYLOAD
(--payload/-payload)NOTIFY_TYPE
(--type/-type)NOTIFY_PROJECT_ID
(--project-id/-project-id)NOTIFY_ENVIRONMENT
(--environment/-environment)NOTIFY_REVISION
(–revision/-revision)NOTIFY_SUMMARY
(--summary/-summary)NOTIFY_ATTACH_FILE
(--attach-file/-attach-file)NOTIFY_REPOSITORY
(--repository/-repository)NOTIFY_EMAIL
(–email--email/-email)NOTIFY_STATUS
(--status/-status)NOTIFY_VERSION
(--version/-version)NOTIFY_CHANGELOG
(--changelog/-changelog)NOTIFY_DESCRIPTION
(–description--description/-description)NOTIFY_ATTACHMENTS
(–attachments--attachments/-attachments)NOTIFY_ATTACH_LOGS
(--attach-logs/-attach-logs)NOTIFY_SHOW_FAILING_COMMANDS
(--show-failing-commands/-show-failing-commands)NOTIFY_SUBJECT
(--subject/-subject)NOTIFY_BODY
(–body)
JSON
Anchor | ||||
---|---|---|---|---|
|
Description
Sets an optional JSON payload (string or file) for an OutgoingWebhook resource. When the OutgoingWebhook is specified in a step's outputresources
the payload is sent when the step is complete.
Usage
Bash |
|
PowerShell |
|
resource
is the name of an OutgoingWebhook resource.payload
is a JSON string or file to attach to the resource that will be sent as part of the outgoing webhook. A file can be specified as a path relative to the current directory, absolute path, or path relative to the step workspace directory.file
option specifies that thepayload
parameter is a file. If not specified,payload
will be processed as a string.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Anchor | ||||
---|---|---|---|---|
|
Description
Extracts the json property value from the specified file.
This simplifies handling of a JSON file to read specific property values that are required for your workflow.
Note | ||
---|---|---|
| ||
In PowerShell, |
Usage
read_json <path to file> <field name>
path to file
is the fully qualified path of the JSON file- field name is the field for which you want to read the value. Use dot notation and [n] for arrays.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Anchor | ||||
---|---|---|---|---|
|
replicate_resource
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
Bash | replicate_resource <from_resource> <to_resource> [--options] |
PowerShell |
|
from_resource
is the name of theinputResources
resource that you're copying from.to_resource
is the name of theoutputResources
resource that will receive the replicated data from thefrom_resource
. Any pre-existing files or key-value pairs in theto_resource
will be replaced.match-settings
option should be set when you want the replication to adhere to any branch/tag settings in theto_resource
. For example, If yourfrom_resource
gitRepo can trigger on both commits and pull requests, but you only want to update yourto_resource
on commits, you can replicate with --match-settings, and theto_resource
will only be updated when thefrom_resource
had a commit.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Anchorwrite-output write-output
write_output
write-output | |
write-output |
Description
Adds data to an output resource in the form of key/value pairs that will become properties of the resource.
Usage
write_output <resource> <key value pair>...
resource
key value pair
is a single string with a key and a value, separated by an “=”. Multiple of these strings can be supplied as input. A value with spaces should be surrounded by quotes.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
The newly attached properties can be accessed as environment variables of the form res_{Resource Name}_{Key Name}
.
For example, the above created properties can be accessed as these environment variables:
Code Block | ||
---|---|---|
| ||
$ printenv res_myImage_master master $ printenv res_myImage_sha d6cd1e2bd19e03a81132a23b2025920577f84e37 $ printenv res_myImage_description "hello world" |
Anchor | ||||
---|---|---|---|---|
|
Caching helps you speed up execution of your steps by preserving and restoring packages and dependencies between runs of a step. In this way, you can reduce build times by avoiding repeating the installation or loading of large dependencies.
add_cache_files
Description
Copies files given as input to later be uploaded if file storage is available.
Usage
add_cache_files <file or directory> <name>
file or directory
is a file or directory to store in the cachename
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
restore_cache_files
Description
Copies stored cache (if file storage is available) to the specified location. No error will occur if nothing is available for <name> in the cache.
Usage
restore_cache_files <name> <path>
name
path
is a path at which to place the file or directory.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Anchor | ||||
---|---|---|---|---|
|
add_run_variables
Description
Allows you to add environment variables that will be available in the following steps of the run.
If the following variables are set, they will be used:
JFROG_CLI_BUILD_NAME
: If set, the pipeline uses this value instead of the default pipeline name for the build info collected.JFROG_CLI_BUILD_NUMBER
: If set, the pipeline uses this value instead of the default run number for the build info collected.USE_LOCAL_JFROG_CLI
: If set astrue
, the local JFrog CLI on the host or in the image (depending onruntime
configuration) is used instead of the version packaged with JFrog Pipelines. This is not recommended and native steps may not be able to run with the local JFrog CLI version.
Usage
add_run_variables <key value pair>...
key value pair
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
export_run_variables
Description
Sources the file containing the run variables. This will be done automatically, but may also be used to “reset” the environment variables in the current step.
Usage
export_run_variables
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
add_run_files
Description
Copies files given as input into the run state for use in later steps in the run, if file storage is available.
Usage
add_run_files <file or directory> <name>
file or directory
is a file or directory to store in the run state
name
is a name to give the stored file or directory (without spaces). This cannot be run.env.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
restore_run_files
Description
Copies files stored in the run state (if file storage is available) to the specified location. No error will occur if nothing is available for <name> in the run state.
Usage
restore_run_files <name> <path>
path
is the name the files to be restored were given when added to the run state.file or directory
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Anchor | ||||
---|---|---|---|---|
|
add_pipeline_variables
Description
Allows you to add environment variables that will be available in the following steps of the run and in future runs. These variables may be overridden by another variable with the same key added to the current run.
If the following variables are set, they will be used:
JFROG_CLI_BUILD_NAME
: If set, the pipeline uses this value instead of the default pipeline name for the build info collected.JFROG_CLI_BUILD_NUMBER
: If set, the pipeline uses this value instead of the default run number for the build info collected.USE_LOCAL_JFROG_CLI
: If set astrue
, the local JFrog CLI on the host or in the image (depending onruntime
configuration) is used instead of the version packaged with JFrog Pipelines. This is not recommended and native steps may not be able to run with the local JFrog CLI version.
Usage
add_pipeline_variables <key value pair>...
key value pair
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
export_pipeline_variables
Description
Sources the file containing the pipeline variables. This will be done automatically, but may also be used to “reset” the environment variables in the current step.
Usage
export_pipeline_variables
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
add_pipeline_files
Description
Copies files given as input into the pipeline state for use in later steps in the run and future runs, if file storage is available.
Usage
add_pipeline_files <file or directory> <name>
file or directory
is a file or directory to store in the pipeline state.name
is a name to give the stored file or directory (without spaces). This cannot be pipeline.env.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
restore_pipeline_files
Description
Copies files stored in the pipeline state (if file storage is available) to the specified location. No error will occur if nothing is available for <name> in the run state.
Usage
restore_pipeline_files <name> <path>
name
is the name the file to be restored was given when added to the pipeline state.path
is a path at which to place the file or files.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
Anchor | ||||
---|---|---|---|---|
|
find_resource_variable
Description
Retrieves the value of the named property of a resource.
Usage
find_resource_variable <resourceName> <propertyName>
resourceName
is the name of the resource.propertyName
is the name of the resource property whose value to retrieve.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
get_integration_name
Description
Retrieves the name of the first integration found of the type specified. Available to extension steps to get the name of the first input integration of a particular type.
Usage
get_integration_name --type <integration type>
integration type
is the name of an Pipelines Integration type
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
get_resource_name
Description
Retrieves the name of the first resource found of the type specified in inputResources
or outputResources
. Available to extension steps to get the name of the first input or output resource of a particular type.
Usage
get_resource_name --type <resource type> --operation <IN | OUT> --syntax-version <semver>
resource type
is the name of a Pipelines Resource typeIN | OUT
selects whether the resource is named ininputResources
oroutputResources
semver
is the semantic version number of the resource's syntax version
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
get_resource_names
Description
Retrieves an array of names of the type specified in inputResources
or outputResources
. Available to extension steps to get the names of input or output resource of a particular type.
Usage
get_resource_names --type <resource type> --operation <IN | OUT> --syntax-version <semver>
resource type
is the name of a Pipelines Resource typeIN | OUT
selects whether the resource is named ininputResources
oroutputResources
semver
is the semantic version number of the resource's syntax version- In PowerShell, a native PowerShell array is returned. In Bash, a JSON array is returned that can be handled with jq.
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
find_step_configuration_value
Description
Retrieves the value of the configuration
property for the currently executing step. If the property is a collection, the first value will be returned. Available to extension steps to get the value of a configuration.
Usage
find_step_configuration_value <propertyName>
propertyName
is the name of the step's configuration property whose value to retrieve
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|