promotePlugin

On this page
Back to index

Summary

Sets the promoted argument 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.
pluginName
Stringrequired
The name of the plugin.
promoted
Booleanoptional
True if the plugin should be promoted, otherwise false.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.promotePlugin( pluginName: "test-pluginName" /* optional arguments */ )