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 |
CheckDeployStatus
Checks the HTTP status of a given URL.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Deployment name |
Required. Unique name of the deployment. |
Hosts |
Comma-separated list of host names. |
Server groups |
Comma-separated list of server group names. If the Hosts parameter is specified, the procedure searches for server groups within that host’s list. |
Servers |
Comma-separated list of server names. If the Server groups parameter is specified, the procedure searches for servers within that group. |
Success criteria |
Required. Desired terminal status of the deployment. The procedure fails if the criteria cannot be met. |
Wait time |
Wait time for terminal status, in seconds. If not provided, only one check is performed. If 0, it waits until the criteria is met. The default is 300 seconds. |
CheckHostControllerStatus
Checks the host controller status.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Host controller name |
Required. Host controller name.
The default is |
Wait time |
Wait time for terminal status, in seconds. If not provided, only one check is performed. If 0, it waits until the criteria is met. The default is 300 seconds. |
Success criteria |
Required. Desired terminal status of the host controller. The procedure fails if the criteria is not met. |
CheckServerGroupStatus
Checks if the status of all servers in the server group is equal to the status in the Criteria field.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Servers group name |
Required. The name of server group to be checked. |
Wait time |
Wait time for terminal status, in seconds. If not provided, only one check is performed. If 0, it waits until the criteria is met. The default is 300 seconds. |
Criteria |
Required. Desired status for all servers in the group.
The procedure status is successful if the criteria is met.
The procedure returns |
CheckServerStatus
Checks the HTTP status of a given URL.
Input parameters
Parameter | Description | ||
---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
||
Perform URL check |
If selected, the JBoss server URL is checked for availability, instead of checking the terminal status with the JBoss CLI. |
||
Host |
Host name to check.
|
||
Server |
Server name to check.
|
||
Success criteria |
Required. Desired status of the server.
The procedure fails if the criteria is not met.
If Perform URL check is not selected, only the terminal status |
||
Wait time |
Wait time for terminal status, in seconds. If not provided, only one check is performed. If 0, it waits until the criteria is met. The default is 300 seconds. |
CreateDatasource
Creates a datasource in JBoss.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
The physical location of the JBoss CLI script.
For example, |
Application name |
Required. Application name. |
Connection driver URL |
Required. The JDBC driver connection URL.
For example, |
Driver class |
Required. The fully qualified name of the JDBC driver class.
For example, |
JNDI name |
Required. The JNDI name for the datasource.
This should start with either |
Driver name |
Required. Defines the JDBC driver the datasource should use.
This can be either the name of the .jar file or the name of the module, depending on how the driver has been deployed.
For example, |
Profile name |
Profile name for domain mode. |
Datasource credential |
The credentials that contain the username and password for the datasource. |
Enable datasource? |
Specifies if the datasource should be enabled after creation. |
CreateOrUpdateDataSource
Creates a new datasource or updates certain properties of an existing datasource.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Datasource name |
Required. Name of the datasource.
This also serves as the unique identifier for this resource.
For example, |
JNDI name |
Required. JNDI name of the datasource.
For example, |
JDBC driver name |
Required. Defines the JDBC driver the datasource should use.
It is a symbolic name matching the name of installed driver.
For example, |
Connection URL |
The JDBC driver connection URL.
For example, |
Datasource connection credentials |
Required. Credentials that contain the username and password used for the connection, and need to be attached to the step. |
Enabled |
Required. Specifies if the created datasource should be enabled. Default is true. |
Profile |
Name of the server profile the datasource applies to.
For example, |
Additional options |
Additional options to pass to the JBoss CLI.
The parameters in this string are concatenated to a generated command line for creating an XA datasource.
For example, |
CreateOrUpdateJMSQueue
Creates a new JMS queue or updates JNDI names for an existing JMS queue using the default message provider, as specified in the configuration of the JBoss EAP messaging subsystem.
Input parameters
Parameter | Description | ||
---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Queue name |
Required. Name of the queue. |
||
JNDI names |
Required. Comma-separated list of JNDI names the queue binds to.
For example, |
||
Profile |
Name of the domain where the queue should be created or updated.
For example, |
||
Durable |
If selected, the created queue is durable.
|
||
Message selector |
JMS message selector.
Only messages that match the selector are added to the queue.
For example,
|
||
Additional options |
Additional options to pass to the JBoss CLI.
The parameters in this string are concatenated to a generated command line for creating a queue.
For example, If Additional options is populated as follows:
|
CreateOrUpdateJMSTopic
Creates a new JMS topic or updates JNDI names for an existing JMS topic using the default message provider as specified in the configuration of the JBoss EAP messaging subsystem.
Input parameters
Parameter | Description | ||
---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Topic name |
Required. Name of the topic. |
||
JNDI names |
Required. Comma-separated list of JNDI names the queue binds to.
For example, |
||
Profile |
Name of the profile in the domain where the topic should be created or updated.
For example, |
||
Additional options |
Additional options to pass to the JBoss CLI.
The parameters in this string are concatenated to a generated command line for creating a topic.
For example, if Additional options is populated as follows:
|
CreateOrUpdateXADataSource
Creates a new XA datasource or updates certain properties of an existing XA datasource.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Datasource name |
Required. Name of the datasource.
This also serves as the unique identifier for this resource.
For example, |
JNDI name |
Required. JNDI name of the datasource.
For example, |
JDBC driver name |
Required. Defines the JDBC driver the datasource should use.
It is a symbolic name matching the name of the installed driver.
For example, |
XA datasource properties |
Required. Comma-separated list of XA datasource properties in |
Datasource connection credentials |
Required. Credential that contains the username and password used for the connection. It must be attached to a step. |
Enabled |
Required. If selected, the created XA datasource is enabled. |
Profile |
Name of the server profile this XA datasource applies to.
For example, |
Additional options |
Additional options to pass to the JBoss CLI.
The parameters in this string are concatenated to a generated command line for creating an XA datasource.
For example, |
DeleteDatasource
Deletes a datasource in JBoss.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Datasource name |
Required. Datasource name to delete. |
Profile name |
Profile name for domain mode. |
DeployApp
Deploys an application (typically WAR or EAR) from the specified source (typically from filepath
) to a standalone
server for standalone JBoss or to a content repository and specified server groups for domain JBoss, based on the
provided parameters.
This procedure is built around the JBoss CLI deploy
command, and most of the parameters correspond with it.
Input parameters
Parameter | Description | ||
---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
||
Application content source path |
Required. Application content source path that is either an absolute filepath (including the name of the WAR or EAR) or a
URL that the domain controller or the standalone server can resolve.
If using a filepath, it should be the full filesystem path to the application that needs to be deployed. For example,
|
||
Deployment name |
Unique name of the deployment.
If this parameter is not provided, JBoss retrieves the deployment name from the file name of |
||
Runtime name for deployment |
The runtime name for the deployment. If not specified, it is the same as the Deployment name. |
||
Apply to all servers |
Applies the deployment to all available server groups.
Represents the
|
||
Server groups to apply |
Comma-separated list of server group names that the JBoss CLI
|
||
Force deployment |
Replaces the current deployment with the deployment specified in
|
||
Additional options |
Additional options for the JBoss CLI
|
DeployApplication
Automatically detects the JBoss operating mode and deploys an application (typically WAR or EAR) to a JBoss standalone or managed domain. It provides a robust interface that provides the complete range of possibilities from JBoss (enabled/disabled states, enabled/disabled server groups) during deployment to a domain. Its behavior is idempotent; it leaves a deployment in the specified state every time it runs and can be run as part of an environment template, where an existing application is updated with new content or a new application is created.
Input parameters
Parameter | Description | ||
---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Application content source path |
Required. Application content source path that is either an absolute filepath (including the name of the WAR or EAR) or a URL that the domain controller or the standalone server can resolve.
|
||
Deployment name |
Unique name of the deployment. If not specified, it is derived from the Application content source path parameter. |
||
Runtime name |
The runtime name for the deployment. If not specified, it is the same as Deployment name. |
||
Enabled server groups |
Enables and assigns server groups, formatted as either a comma-separated list (for example,
|
||
Disabled server groups |
Disables and assigns server groups, formatted as either a comma-separated list (for example,
|
||
Additional options |
Additional options to pass to the JBoss CLI.
|
DisableDeploy
Disables a deployment designated by the name argument.
This procedure is only supported for JBoss standalone mode. |
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Deployment name |
Required. Unique name of the deployment to disable. |
Server groups |
Comma-separated list of server group names that the |
EnableDeploy
Enables an already existing but disabled in the repository deployment designated by the name argument.
This procedure is only supported for JBoss standalone mode. |
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Deployment name |
Required. Unique name of the deployment to enable. |
Server groups |
Comma-separated list of server group names that the |
GetEnvInfo
Returns different types of information about a JBoss environment and writes it to properties and logs.
Input parameters
Parameter | Description | ||
---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Information type |
Required. Type of information requested about the JBoss environment. |
||
Information type context |
Specify the name of the profile for the information type request. If a profile name is not specified, the procedure returns information for all profiles.
|
||
Additional options |
Additional options to pass to the JBoss CLI call to limit the information requested.
For example, if you provide |
RemoveJMSQueue
Removes an existing JMS queue in the JBoss EAP messaging subsystem.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Queue name |
Required. Name of the queue. |
Profile |
Name of the profile the queue should be removed from.
For example, |
RemoveJMSTopic
Removes an existing JMS topic in the JBoss EAP messaging subsystem.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Topic name |
Required. Name of the topic. |
Profile |
Name of the profile the queue should be removed from.
For example, |
RemoveXADataSource
Removes an existing XA datasource in the JBoss EAP data sources
subsystem.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Datasource name |
Required. Name of the datasource.
This also serves as the unique identifier for this resource.
For example, |
Profile |
Name of the server profile the XA datasource applies to.
For example, |
RunCustomCommand
Runs custom scripts or procedures.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Custom command |
Required. Custom command to run. |
ShutdownStandaloneServer
Shuts down a running standalone server.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
StartDomainServer
Starts a server in domain mode.
Input parameters
Parameter | Description | ||
---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Physical location of the domain script |
Required. Absolute physical path of the domain script.
For example, |
||
Optional domain configuration name |
Name of the domain configuration file that CloudBees CD/RO uses to start the domain controller with a different
domain configuration (
|
||
Optional host configuration name |
Name of the host configuration file that CloudBees CD/RO uses to start the domain or host controller with a
different host configuration (
|
StartHostController
Start any of the host controllers in a managed domain.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Startup script |
Required. Absolute physical path of the domain script.
For example, |
Domain configuration file |
Overrides the default |
Host configuration file |
Overrides the default |
Host name |
Host name of the active host controller. If provided, this parameter is used to connect using the master host controller JBoss CLI and surfaces any boot errors upon startup. |
Additional options |
Additional options to be passed on to the domain startup script. Parameters are concatenated as specified to a generated command line for starting the master or slave host controller. For example:
|
Log file location |
Absolute path location to the host controller log file.
For example, |
StartServers
Starts the servers in the specified server group and verifies the servers have started successfully.
This procedure is built around the JBoss CLI start-servers
command for the server groups.
For example, /server-group=some-group-name:start-servers
.
The procedure then checks the status
attributes of the servers on the needed hosts within the specified server group.
For example, /host=some-host-name/server-config=some-server-name:read-attribute(name=status)
.
The expected response for started servers is STARTED
.
This procedure is only supported for JBoss domain mode. |
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Servers group |
Required. Name of the server group to start.
For example, the CLI command is called if |
Timeout for recurring check of servers (seconds) |
After the |
StartStandaloneServer
Starts a JBoss server in standalone mode.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Startup script |
Required. Absolute physical path of the standalone script.
For example, |
Server configuration file |
Name of the server configuration file to use (represents the |
Additional options |
Additional options to pass to the standalone startup script.
The parameters in this string are concatenated to a generated command line for starting JBoss as a standalone server.
For example,
|
Log file location |
Absolute path location to the server log file.
For example, |
StopDomain
Stops all servers within a managed domain and optionally shuts down all host controllers.
Input parameters
Parameter | Description | ||
---|---|---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
||
Timeout |
Timeout, in seconds, to wait for all active requests to complete and then stop all servers and shut down each host
controller (if Shut down all controllers is selected).
For example, the following CLI commands can be called:
|
||
Shut down all controllers |
If selected, all controllers are shutdown one-by-one with the master host controller shut down last.
After shutting down, if some servers are still in a |
StopServers
Stops servers in the specified server group and verifies the servers have stopped successfully.
This procedure is built around the JBoss CLI stop-servers
command for the server groups.
For example, /server-group=some-group-name:stop-servers
.
The procedure then checks the status
attributes of the servers on the needed hosts within the specified server group.
For example, /host=some-host-name/server-config=some-server-name:read-attribute(name=status)
.
The expected response value for stopped servers is STOPPED
or DISABLED
.
These are similar statuses which indicate that servers are stopped, but the DISABLED
status indicates that a server is configured to not start automatically while the STOPPED
status indicates
that a server is configured to start automatically.
This procedure is only supported for JBoss domain mode. |
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Servers group |
Required. The name of the server group to stop.
For example, the CLI command is called if |
Timeout for recurring check of servers (seconds) |
After the |
UndeployApp
Undeploys a deployment with the given name and, depending on the arguments, removes its content from the repository.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Physical location of the JBoss client script |
Physical location of the JBoss CLI script.
For example, |
Deployment name |
Required. Unique name of the application (deployment) to undeploy. |
Apply undeploy to all server groups |
If selected, applies the undeploy to all server groups in which the deployment is enabled.
Either |
Server groups to apply |
Comma-separated list of server group names the undeploy command applies to. |
Keep content |
If selected, the deployment is disabled and the deployment content is retained. If not selected, the deployment is disabled and the deployment content is removed from the repository. |
Additional options |
Additional options for the |