This class is a wrapper for the CloudBees CD REST client It's considered to contain the best practices and to help omit some pitfalls of the original API
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.String |
evalDslFile(java.net.URL dslFilePath, java.lang.Object parameters = [:]) Runs given DSL file on the server |
|
static com.electriccloud.client.groovy.ElectricFlow |
getEc() Use this method to get an initialized object for the specific purposes that are not covered by this wrapper. |
|
static java.lang.String |
getFlowProperty(java.lang.String path) Returns value of the property at given path |
|
static java.lang.String |
getServerUrl() Builds server url for current environment variables |
|
static java.lang.String |
getServerVersion() Asks server for version and returns version of the CloudBees CD Server |
|
static java.lang.String |
readActualParameterValue(java.lang.String actualParameterName) This method contains a logic to get a value for an actual parameter. |
|
static void |
setEc(com.electriccloud.client.groovy.ElectricFlow electricFlow) This method allows to replace the ElectricFlow instance |
|
static java.lang.String |
setFlowProperty(java.lang.String path, java.lang.String value) Sets CloudBees CD property at the given path |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Runs given DSL file on the server
dslFilePath
- path to a file to executeparameters
- parameters to be passed as argsUse this method to get an initialized object for the specific purposes that are not covered by this wrapper. Login process allows the library to be used outside of the CloudBees CD steps
Returns value of the property at given path
path
- path to the propertyBuilds server url for current environment variables
Asks server for version and returns version of the CloudBees CD Server
This method contains a logic to get a value for an actual parameter.
actualParameterName
- name of the actual parameter to retrieve value forThis method allows to replace the ElectricFlow instance
electricFlow
- - new ElectricFlow instanceSets CloudBees CD property at the given path
path
- path to the propertyvalue
- value for a property