createPlugin
Creates a plugin. You can create an entirely new plugin or a plugin based on an existing plugin project.
You must specify key
, version
, and projectName
.
Arguments | Descriptions |
---|---|
category |
(Optional) Category for the plugin. Categories let you group plugins by functionality or purpose and provide a convenient way to look up a specific plugin if you know its functionality or purpose. For example, when you are configuring a process step and want to deploy an application on WebSphere, you first choose the Application Server category and then the WebSphere plugin. The default category is Argument type: String |
pluginWizardBased |
(Optional) Whether the plugin conforms to the standard format used by plugins that are created using the Plugin Manager. The default is Argument type: Boolean |
key |
Version-independent name for the plugin. Argument type: String |
version |
Plugin version. Argument type: String |
projectName |
Name of the project. This is not required if the Argument type: String |
author |
(Optional) Plugin author’s name. For example, a user or organization name. The current user name (such as Argument type: String |
authorUrl |
(Optional) Plugin author’s URL. For example, Argument type: String |
description |
(Optional) Plain text or HTML description of the parameter. CloudBees CD/RO does not interpret this text. If using HTML, you must surround the text with < Argument type: String |
label |
(Optional) Label to display in lists of plugins. Argument type: String |
supportsConfigurations |
(Optional) Whether to allow the addition of plugin procedures to support the creation of plugin configurations. Enabling this option adds the Configuration Setup tab to the Project Details page in the Automation Platform UI for this plugin. The value is If this argument is set to Argument type: Boolean |
deletePlugin
Deletes an existing plugin object without deleting the associated project or files.
You must specify a pluginName
.
Arguments | Descriptions |
---|---|
pluginName |
Name of the plugin. Argument type: String |
exportPlugin
Exports a plugin to a .zip file. You can use this file to import a plugin to another CloudBees CD/RO server.
Arguments | Descriptions |
---|---|
pluginKey |
Name given to the plugin when it was created. For example, Argument type: String |
pluginName |
Fully-qualified name of the plugin. This name includes the given name of the plugin and its version number. For example, Argument type: String |
fileName |
File name of the plugin .zip file to export. The plugin zip file is downloaded to your system as <filename> - <version> .zip . Argument type: String |
getPlugin
Retrieves an installed plugin.
Arguments | Descriptions |
---|---|
pluginName |
Name of the plugin to find. If the name is specified without a version number, the currently promoted version is returned if a promoted version exists. Argument type: String |
installPlugin
Installs a plugin from a .jar or .zip file. Extracts the .jar or .zip file contents on the server and creates a project and a plugin.
Arguments | Descriptions |
---|---|
url |
Location of the plugin .jar file to install:
Argument type: String |
disableProjectTracking |
(Optional) < Boolean flag— If this argument is set to If you do not need to track changes in the new project, this avoids the Change Tracking overhead that would slow down the import operation. This also saves having to subsequently disable change tracking of the re-imported project. Argument type: Boolean |
force |
(Optional) < Boolean flag— Specifying Argument type: Boolean |
reducedDetailChangeHistory |
(Optional) < Boolean flag - ` 0|1|true|false` > Use this argument for large projects containing over 20,000 audited objects with Change Tracking enabled. When this argument is set to Set this argument to Argument type: Boolean |
modifyPlugin
Modifies an existing plugin.
Some plugin attributes available on the Plugins page are not available in any of the plugin-related APIs. Because some plugin metadata comes from the plugin.xml file, the web server can access this data, but the CloudBees CD/RO server cannot. Thus, the Plugin Manager, when run in the web server context, provides additional information and functionality.
|
Arguments | Descriptions |
---|---|
category |
(Optional) Category for the plugin. Categories let you group plugins by functionality or purpose and provide a convenient way to look up a specific plugin if you know its functionality or purpose. For example, when you are configuring a process step and want to deploy an application on WebSphere, you first choose the Application Server category and then the WebSphere plugin. Argument type: String |
extensionVersion |
(Optional) Number that CloudBees CD/RO uses to differentiate between the CloudBees created plugins that you downloaded but did not modify or extend and CloudBees created plugins that you have modified or extended. This prevents a CloudBees CD/RO upgrade that also upgrades the corresponding bundled plugin from overwriting the plugin that you have modified or extended. Use only positive integers with no other characters. For example, For details about version extensions, see Plugin Manager. |
pluginName |
Plugin name. If the name is specified without a version number, the currently promoted version is used if one exists. Argument type: String |
author |
(Optional) Plugin author’s name. For example, a user or organization name. The current user name (such as Argument type: String |
authorUrl |
(Optional) Plugin author’s URL. For example, Argument type: String |
description |
(Optional) Plain text or HTML description of the parameter. CloudBees CD/RO does not interpret this text. If using HTML, y ou must surround the text with < Argument type: String |
label |
(Optional) Label to display in plugin lists. Argument type: String |
supportsConfigurations |
(Optional) Whether to allow the addition of plugin procedures to support the creation of plugin configurations. Enabling this option adds the Configuration Setup tab to the Project Details page in the Automation Platform UI for this plugin. The value is If this is set to Argument type: Boolean |
promotePlugin
Sets the promoted flag on a plugin. Only one version of a plugin can be promoted at a time, so setting the promoted flag to true
on one version sets the flag to false
on all other plugins with the same key. The promoted version is the one resolved by an indirect reference of the form $[/plugins/<key>]
or a plugin name argument without a specified version.
Arguments | Descriptions |
---|---|
pluginName |
Name of the plugin to promote. If the name is specified without a version number, the currently promoted version is used if one exists. Argument type: String |
promoted |
(Optional) < Boolean flag— New value of the promoted flag for the specified plugin. The default is Argument type: Boolean |
Response
One plugin
element, which includes the plugin ID, name, time created, label, owner, key, version, project name, and so on.
uninstallPlugin
Uninstalls a plugin and deletes the associated project and any installed files.
Arguments | Descriptions |
---|---|
pluginName |
Name of the plugin to uninstall. If the name is specified without a version number, the currently promoted version is used if one exists. Argument type: String |
timeout |
(Optional) Maximum amount of time to spend waiting for this operation to complete. Argument type: Long |