Plugin procedures can be used in procedure steps, process steps, and pipeline tasks, allowing you to orchestrate third-party tools at the appropriate time in your component, application process, or pipeline.
|
Depending on your plugin configuration and how you run procedures, the field may behave differently in the CloudBees CD/RO UI. For more information, refer to Differences in plugin UI behavior. |
Create Or Update Objects
Create or update Kubernetes objects using kubectl commands to apply, create, and replace based on a specification (either a YAML/JSON file or content provided in a text area). The selected update action determines which kubectl command is used.
Input parameters
| Parameter | Description |
|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Update action |
Required. Select the appropriate update action.
|
Specification source |
Required. Select the specification source.
|
File path |
Required if the Specification source is filePath.
The absolute path to a file with a YAML or JSON specification. For example, |
Content |
Required if the Specification source is fileContent.
Content for the specification in either a YAML or JSON specification. YAML can contain several sections, separated by |
Kustomization directory |
Required if the Specification source is kustomizeDirectory.
The directory path where the kustomization file is located. For example, |
Additional options for kubectl |
Additional options for kubectl, separated by newlines. For example, |
Additional options for kubectl command |
Additional options for kubectl command separated by newlines. For example, for the |
Result property path |
If specified, the command output, error output, and exit value are stored in properties whose names are |
Delete Objects
Deletes Kubernetes objects based on a specification (either a YAML/JSON file or content provided in a text area).
Input parameters
| Parameter | Description |
|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Specification source |
Required. Select the specification source.
|
File path |
Required if the Specification source is filePath.
The absolute path to a file with a YAML or JSON specification. For example, |
Content |
Required if Specification source is fileContent.
Content for the specification in either a YAML or JSON specification. YAML can contain several sections, separated by |
Kustomization directory |
Required if the Specification source is kustomizeDirectory.
The directory path where the kustomization file is located. For example, |
Additional options for kubectl |
Additional options for kubectl, separated by newlines. For example, |
Additional options for kubectl command |
Additional options for the kubectl |
Result property path |
If specified, the command output, error output, and exit value are stored in properties whose names are |
Describe Objects
Use this procedure to describe Kubernetes objects based on a specification (either a YAML/JSON file or content provided in a text area).
Input parameters
| Parameter | Description |
|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Specification source |
Required. Select the specification source.
|
File path |
Required if the Specification source is filePath.
The absolute path to a file with a YAML or JSON specification. For example, |
Content |
Required if Specification source is fileContent.
Content for the specification in either a YAML or JSON specification. YAML can contain several sections, separated by |
Kustomization directory |
Required if the Specification source is kustomizeDirectory.
The directory path where the kustomization file is located. For example, |
Output format |
The output format, which stands for
For more information, refer to custom columns, golang template and jsonpath template. |
Additional options for kubectl |
Additional options for kubectl, separated by newlines. For example, |
Additional options for kubectl command |
Additional options for the kubectl |
Result property path |
If specified, the command output, error output, and exit value are stored in properties whose names are |
Run Custom Command
Use this procedure to run custom kubectl commands by providing a command and any required parameters. The parameter fields for this procedure use the Kubernetes kubectl syntax.
Input parameters
| Parameter | Description | ||
|---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Kubectl command |
Required. The kubectl command to run, in syntax
For example, |
||
Flags and parameters for kubectl command |
Specify newline-separated and space-delimited flags and parameters, and any output options for your Kubectl command entry.
Newline-separated example, for
Space-delimited example, for
|
||
Flags for kubectl |
Specify newline-separated and space-delimited flags/options that affect the operation of the kubectl command, such as logging settings or other operational parameters.
For example,
Space-delimited example, for
|
||
Specification source |
Required. Select the specification source.
|
||
File path |
Required if the Specification source is filePath.
The absolute path to a file with a YAML or JSON specification. For example, |
||
Content |
Required if Specification source is fileContent. Content for the specification in either a YAML or JSON specification. YAML can contain several sections, separated by |
||
Result property path |
If specified, the command output, error output, and exit value are stored in properties whose names are |