Back to index
Summary
Creates a new CI server configuration.ciConfigurationNameStringrequiredThe name of the CI configuration. ciConfigurationTypeStringoptionalThe type of CI configuration. Possible values: "CB_OPS_CENTER" , "CI_CONTROLLER" credentialNameStringoptionalThe name of the credential. credentialProjectNameStringoptionalThe name of the project containing specified credential. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. isDefaultBooleanoptionalSet as default CI Configuration. overrideDefaultBooleanoptionalIf true , the isDefault flag is overwritten for the existing, default CI configuration.passwordStringoptionalThe password for authenticating with the CI server. publicKeyStringoptionalPublic key for the CI controller. Use this argument to specify the public key for the CI controller if the server is unable to retrieve the controller's public key due to network topology. refCIConfigurationStringoptionalReferences the CI configuration to use the userName and password or API token.serverUrlStringoptionalURL to connect to the CI server. If using an IPv6 address, enclose the address in square brackets. Example: [<IPv6-ADDRESS>] .testConnectionBooleanoptionalSpecifies if the connection to the CI server should be tested before saving the configuration. The default is false .userNameStringoptionalThe user name for authenticating with the CI server. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createCIConfiguration( ciConfigurationName: "test-ciConfigurationName" /* optional arguments */ )