Pipeline Headers Reference
Licenses | COMMUNITY, ENTERPRISE, CORPORATE |
Since | VERSION 6.0 |
Introduction
Each pipeline can have optional headers defined. A pipeline header is similar to a HTTP header and defines a global “configuration item” for the overall execution of the pipeline. In the example below you can see a pipeline with a header defined in the headers
section:
headers:
description: "This is the hello world pipeline"
pipeline:
- log:
message: "Hello World!"
Reference
It is possible to create custom headers and there are some pre-defined headers. Below you can find a reference of the pre-defined headers and their meanings.
Name | Description |
---|---|
| Defines the version of the pipeline API to be used (for example: |
| Defines the authorization to be used for this pipeline. Has similar meaning as the HTTP
In case no authentication header is set in current pipeline, the existing authentication from the HTTP header or from the backend will be used instead. |
| An optional description of this pipeline. The text may contain at max. 250 characters. This description is also used in logs and descriptions wherever possible. |
| Sometimes it is necessary to change the default prefix
|
| Optional value to define what should happen if a single command in this pipeline has an error / exception. Possible values are:
|
| Deprecated Since version 7.0. Use the command A username of a user under which this pipeline must be executed as. It has the same functionality as the command |
| This header is primarily to configure a pipeline which is auto-executed on import or install but can be useful also in other cases. It defines a PE which evaluated on execution of the pipeline. If this expression returns Here is an example to run the pipeline only when in test mode: Or when a certain namespace is set: |
| Since 7.5. If this header is set to |