Usage
The Generic integration can be added directly to a step in the integrations
section.
Default Environment Variables
When you add this integration to a step, All key-value pairs are made available as environment variables.
Environment variable | Description |
---|---|
int_<integration-name>_<key> | The value stored for the custom environment variable. |
Example
You can define a Generic integration with the following entries:
- Name:
myCredentials
- Custom Environment Variables:
- Key:
username
- Value:
janedoe
- Key:
password
- Value:
nAm30fMyp3t
- Key:
When myCredentials
is specified in a step's integrations
block, the key-value pairs stored there can then accessed in the step as environment variables:
pipelines: - name: generic_integration_example steps: - name: step_1 type: Bash configuration: integrations: - name: myCredentials execution: onExecute: - printenv $int_myCredentials_username - printenv $int_myCredentials_password