Introducing Matrix ParametersMatrix parameters key-value pairs parameters separated by semicolon (;) that you can put anywhere on a URI. This is a standard way for specifying parameters in HTTP (in addition to query parameters and path parameters).
Artifactory makes use of matrix parameters for:
Dynamically Adding Properties to Artifacts on DeploymentWe can add key-value matrix parameters to deploy (PUT) requests and those will be automatically transformed to properties on the deployed artifact. When using Maven, for instance, we can add two parameters to the deployment URL: And deploy to the Upon deployment the URL will be transformed to: And the deployed
Controlling Artifact Resolution with Matrix Parameters QueriesMatrix parameters can also be used in artifact resolution, to control how artifacts are found and served. There is currently support for two types of queries: non-conflicting values & mandatory values. Non-mandatory PropertiesResolved artifacts may either have no property with the key specified, or have the properly with the key specified and the exact value specified (i.e. the artifact will be resolved if it has a property with a non-conflicting value. For example:
Mandatory PropertiesResolved artifacts must have a property with the key specified and the exact value specified. For example:
Multi-valued Properties SupportAll matrix parameters can support multiple values by separating values with a comma (,). For example: |
Using Properties in Deployment and Resolution
Skip to end of metadata
Go to start of metadata
Labels: