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 |
Create Image
Creates a new virtual machine image in GCP.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Family |
The name of the image family. Either the image family name or the image name should be provided. If the image name is not provided, it is calculated from the family name. |
Name |
The name of the image. Either the image family name or the image name should be provided. If the image name is not provided, it is calculated from the family name. |
Source disk |
Required. The name of the source disk. |
Disk zone |
The zone of the source disk. If Source disk is selected, this field must be specified. |
Description |
The description for the new image. |
Disk size (GB) |
The disk size, in GB. |
Deprecate old image? |
If selected, the old image from the same family is deprecated and replaced with the new image. |
Force create? |
If selected, the image is created even if the disk is in use by a running instance. |
Locations |
Space or newline-separated zone names for the new image. By default, the new image is multi-zonal. |
Labels |
Labels for the newly created image object. For example, |
Delete Instances
Destroys one or more virtual machine instances in GCP.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Instance names |
Required. The instance name. If there are multiple instances, specify one instance name per line. |
Timeout (seconds) |
The time, in seconds, to wait for instances to be deleted. |
List Instances
List virtual machine instances in GCP.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Filter |
An expression used to filter resources.
The filter expression must specify the field name, a comparison operator, and the value used to filter them.
The value must be a string, a number, or a boolean and the comparison operator must be either |
Max results |
The maximum number of results per page that should be returned. Acceptable values are 0 to 500, inclusive. The default is 500.
If the number of results returned is larger than Max results, Compute Engine returns a |
Order by |
The order to sort results. By default, results are sorted in alphanumerical order based on resource name.
In addition, results can be sorted in descending order based on the timestamp by using |
Result property sheet |
Required. The property sheet used to store the JSON representation of instances found. |
Provision
Creates one or more virtual machine instances.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Instance name template |
The name of the instance template. For example, |
Instance type |
Required. The instance type. For example, |
Source image |
The source image starting with a project name. For example, |
Source image project |
The project the source image belongs to. If not specified, the project from the configuration is used. |
Source image family |
The source image family. Either the family or a URL must be provided. |
Keys |
SSH keys in JSON format. For example, |
Network |
The name of the VPC network. For example, default. This may be a name, if the network is located in the same project with the newly created instance, or a path to the network if it is located in another project. For example, projects/other-project/global/networks/shared-network. |
Subnetwork |
Required. The name of the VPC subnetwork. For example, default. This may be a name, if the subnetwork is located in the same project with the newly created instance, or a path to the subnetwork if it is located in another project. For example, projects/other-project/regions/us-east1/subnetworks/shared-subnetwork. |
Disk size (Gb) |
The instance disk size, in Gb. |
Instance tags |
Instance tags that are newline-separated. For example, |
Assign public IP? |
If selected, a network address translation (NAT) interface is attached to the instance. |
Use service account |
The service account used to provision the virtual machine.
|
Service account email |
The service account email to use with the provisioned machine. |
Service account scopes |
The service account access scopes.
By default, |
Protect from deletion? |
If selected, the instance is protected from deletion. |
Labels |
Labels for the instance, in JSON format. For example, |
Preemptible |
A preemptible virtual machine is less expensive, but lasts only for 24 hours. It can be terminated sooner due to system demands. |
Hostname |
The hostname for the instance. |
Count |
Required. The number of instances to create. |
Ping resource? |
If selected, the resource is pinged and the job finishes successfully only when the resource is up and running. |
Network stack type |
The stack type to use for this network interface. To use only IPv4 addresses, select IPV4_ONLY. To use IPv4 and IPv6 addresses or IPv6 only, select IPV4_IPV6. Default is IPV4_ONLY. |
Timeout (seconds) |
The time, in seconds, to wait for provisioning to complete. |
Resource pool name |
The resource is created for the instance and placed into this pool. |
Resource port |
The agent port for the created resource. |
Resource workspace |
The workspace name for the created resource. |
Resource zone |
The zone to use for the created resource. |
Result property |
The property sheet to store the instance result. |
Start Instances
Starts one or more virtual machine instances in GCP.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Instance names |
Required. The instance name. If there are multiple instances, specify one instance name per line. |
Result property sheet |
Required. The property sheet to store instances that are started in JSON format. |
Stop Instances
Stops one or more virtual machine instances in GCP.
Input parameters
Parameter | Description |
---|---|
Configuration name |
Required. The previously defined configuration for the plugin. |
Instance names |
Required. The instance name. If there are multiple instances, specify one instance name per line. |
Timeout (seconds) |
The time, in seconds, to wait for instances to be deleted. |