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





Overview

AnAql资源指定一个Artifactory查询使用Artifactory Query Language.


An Aql resource can be used in theconfigurationof aFileSpecresource to specify file properties to match against.

An Aql resource can be used as aninputresourcefor theCreateReleaseBundlestep. It defines the query that is used to create a release bundle.

Page Contents


YAML Schema

The YAML schema forAql:

resources: - name:  type: Aql configuration: sourceArtifactory:  query:  addedProperties: key1: val1 key2: val2 mappings: - name: mapping1 input: output: - name: mapping2 input: output:

Tags

name

Analphanumericstring (underscores are permitted) that identifies the resource.

type

Must beAqlfor this resource type.

configuration

Specifies all configuration selections for the resource.

Tag

Description

Required/Optional
sourceArtifactory The name of anArtifactory Integration. Required
query

AnArtifactory Query Languagequery string.

Required

addedProperties

List of added properties that will be added to the artifacts after distribution of the release bundle.

  • key- Property key to be created or updated after distribution of the release bundle.
  • value-List of values to be added to the property key after distribution of the release bundle.
Optional

mappings

List of mappings that are applied to the artifact paths after distribution of the release bundle.

  • name- Thefriendly name of the mapping entry.
  • input- Regex match string for artifact paths.
  • output- Replacement for artifact paths matched by the "input" match string. Capture groups can be used as "$1".
Optional

Examples

pipelines.yml
resources: - name: Aql_ART_1 type: Aql configuration: sourceArtifactory: s_artifactory query: items.find({"@build.name":{"$eq":"art"}}) addedProperties: key1: value1 key2: value2 mappings: - name: mapping1 input: IN output: test1 - name: mapping2 input: IN output: test2 pipelines: - name: pipelines_ART_1 steps: - name: step_ART_1 type: PowerShell configuration: nodePool: win_2019 inputResources: - name: Aql_ART_1 trigger: true execution: onExecute: - write-output "executing step..."
  • No labels
Copyright © 2022 JFrog Ltd.