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 Differences in plugin UI behavior. field may behave differently in the CloudBees CD/RO UI. For more information, refer to |
runRest
Use this procedure to allow the input of any HTTP request that is defined in the provided fields of the parameters. The plugin analyzes the parameters and attempts to create and send the HTTP request. After the request is sent, the plugin analyzes the response and returns the result, as either a success or failure.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Ignore auth |
When selected, the credential specified in the configuration for this request is ignored. |
Request type |
Required. Includes the following options: |
Request timeout |
REST client request timeout in seconds.
If not set or defined in Default request timeout, |
Path URL |
Relative URL Path.
For example, |
Query options |
Newline-separated request query options in format |
Content type |
Content type required for the request. Used to check the connection. Examples:
|
Accepted MIME types |
Content types, expressed as MIME types, the client can understand. |
Cookie value |
Value sent as a cookie. Used for checking connection. Example:
|
Headers |
Provide the headers required for the request. Used to check the connection. For more than one header, write each header on a new line. Key-value pairs may be written separated by a whitespace, colon, or equals. Example (note that each key-value pair must appear on a new line):
|
Form content |
Provide the content required for the request.
For example: |
Source file |
Path to a file that provides the content required for the request.
Used instead of Form Content field.
For example: |
Download to file |
Enables content to be downloaded to a file. |
Target file |
Name of the target file for downloading. |
Post-processing script shell |
The shell used to execute the provided script. Entry may be an absolute file path ( |
Post-processing script content |
Script content used for response handling executed by the shell referenced in Post script shell. |
Post-processing script output file |
File path, relative or absolute, to store the result of the post process script.
If specified, |
Result property path |
The property with the response body, such as |
Response regular expression for polling |
Regular expression to evaluate for the response content. If the parameter is provided, the request is performed repeated times until it matches the response content or the timeout expires. If the parameter is not provided, it is not evaluated, and the request is performed once. Examples:
|