evalDsl

Back to index

Summary

Evaluates and runs a CloudBees CD/RO domain-specific language (DSL) script.
dsl
Stringrequired
The DSL text.
applicationName
Stringoptional
The name of the application container of the property sheet that owns the property.
applicationTierName
Stringoptional
The name of the application tier container of the property sheet that owns the property.
archiveConnectorName
Stringoptional
The name of the archive connector of the property sheet that owns the property.
artifactName
Stringoptional
The name of the artifact container of the property sheet that owns the property.
artifactVersionName
Stringoptional
The name of the artifactVersion container of the property sheet that owns the property.
catalogItemRunId
Stringoptional
The primary key of the CatalogItemRun container of the property sheet that owns the property.
catalogName
Stringoptional
The name of the catalog of the property sheet that owns the property.
ciBuildDetailName
Stringoptional
The name of the CI build detail of the property sheet that owns the property.
clusterName
Stringoptional
The name of the cluster which owns property sheet.
componentName
Stringoptional
The name of the component container of the property sheet that owns the property.
configName
Stringoptional
The name of the emailConfig container that owns the property.
credentialName
Stringoptional
The name of the credential container of the property sheet that owns the property.
dashboardName
Stringoptional
The name of the dashboard of the property sheet that owns the property.
dataRetentionPolicyName
Stringoptional
The name of the data retention policy of the property sheet that owns the property.
debug
Booleanoptional
True to include debug output.
describe
Booleanoptional
True to return help description for the DSL text.
disableAllValidations
Booleanoptional
To disable all validation checks, pass '1'.
environmentName
Stringoptional
The name of the environment container of the property sheet that owns the property.
environmentTemplateName
Stringoptional
The name of the environment template container of the property sheet that owns the property.
environmentTemplateTierName
Stringoptional
The name of the environment template tier container of the property sheet that owns the property.
environmentTierName
Stringoptional
The name of the environment tier container of the property sheet that owns the property.
flowName
Stringoptional
The name of the flow container of the property sheet that owns the property.
flowRuntimeId
Stringoptional
The primary key or name of the flowRuntime container of the property sheet that owns the property.
flowRuntimeName
Stringoptional
The name of the flow runtime container of the property sheet that owns the property.
flowRuntimeStateId
Stringoptional
The primary key or name of the flowRuntimeState container of the property sheet that owns the property.
flowRuntimeStateName
Stringoptional
The name of the flow state container of the property sheet that owns the property.
flowStateName
Stringoptional
The name of the flow state container of the property sheet that owns the property.
flowTransitionName
Stringoptional
The name of the flow transition container of the property sheet that owns the property.
format
Stringoptional
Format to use for the DSL. Defaults to groovy format.
Possible values: "groovy", "yaml"
gateType
Stringoptional
The type of the gate which owns property sheet.
Possible values: "POST", "PRE"
gatewayName
Stringoptional
The name of the gateway container of the property sheet.
groupName
Stringoptional
The name of the group container of the property sheet that owns the property.
helpFormat
Stringoptional
Format to use for the DSL help content.
Possible values: "asciidoc", "html", "openapi", "structured", "text", "yamlSchema", "yamlSchema_nested", "yamlText"
jobId
Stringoptional
The primary key or name of the job container of the property sheet that owns the property.
jobStepId
UUIDoptional
The primary key of the job-step container of the property sheet that owns the property.
microserviceName
Stringoptional
The name of the microservice container of the property sheet.
notifierName
Stringoptional
The name of the notifier container of the property sheet that owns the property.
objectId
Stringoptional
The object ID as returned by FindObjects.
overwrite
Booleanoptional
True to use overwrite mode. If the object exists, all existing attributes of the object will be overwritten by the values in the DSL.
parameters
Stringoptional
JSON text which is parsed and passed to the DSL as a map.
path
Stringoptional
Property path string.
pipelineName
Stringoptional
The name of the pipeline container of the property sheet that owns the property.
pluginConfigurationName
Stringoptional
The name of the plugin configuration container of the property sheet that owns the property.
pluginName
Stringoptional
The name of the plugin container of the property sheet that owns the property.
procedureName
Stringoptional
The name of the procedure container of the property sheet that owns the property.
processName
Stringoptional
The name of the process, if the container is a process or process step.
processStepName
Stringoptional
The name of the process step, if the container is a process step.
projectName
Stringoptional
The name of the project container of the property sheet that owns the property.
propertySheetId
UUIDoptional
The primary key of the property sheet that owns the property.
releaseName
Stringoptional
The name of the release container of the property sheet that owns the property.
reportName
Stringoptional
The name of the report of the property sheet that owns the property.
reportObjectTypeName
Stringoptional
The name of the report object type of the property sheet that owns the property.
repositoryName
Stringoptional
The name of the repository container of the property sheet that owns the property.
resourceName
Stringoptional
The name of the resource container of the property sheet that owns the property.
resourcePoolName
Stringoptional
The name of the resource pool container of the property sheet that owns the property.
resourceTemplateName
Stringoptional
The name of the resource template container of the property sheet that owns the property.
scheduleName
Stringoptional
The name of the schedule container of the property sheet.
scmSyncName
Stringoptional
The name of the SCM Sync container of the property sheet that owns the property.
searchFilterName
Stringoptional
The name of the search filter container of the property sheet.
serverLibraryPath
Stringoptional
Path to the server directory that contains jar files and classes to be added to the classpath when evaluating the DSL text.
serviceAccountName
Stringoptional
Retrieves the name of the service account container of the property sheet.
sessionPassword
Stringoptional
Session user's password. Used to re-verify identity before changing user passwords in the system.
skipOverwriteTypes
Stringoptionalpreview
This argument is in preview mode, and therefore subject to change.
JSON containing lists of parent object types and child types as 'parentTypes' and 'childTypes' respectively that will not be overwritten in the DSL when overwrite mode is used.
snapshotName
Stringoptional
The name of the snapshot container of the property sheet that owns the property.
stageName
Stringoptional
The name of the stage container of the property sheet that owns the property.
stateDefinitionName
Stringoptional
The name of the state definition container of the property sheet that owns the property.
stateName
Stringoptional
The name of the state container of the property sheet that owns the property.
stepName
Stringoptional
The name of the step container of the property sheet that owns the property.
systemObjectName
Stringoptional
The system object.
Possible values: "admin", "analyticsServerConfigurations", "archiveConnectors", "artifacts", "ciConfigurations", "ciEventsSchemaConfiguration", "ciJobDetails", "ciLoginHistory", "complianceConfiguration", "dataRetentionPolicies", "devOpsForesight", "devOpsInsightServerConfigurations", "directory", "dslClientFiles", "emailConfigs", "forceAbort", "licensing", "log", "personaCategories", "personaPages", "personas", "plugins", "priority", "projects", "reportObjectTypes", "repositories", "resources", "searchFilters", "server", "session", "ssoConfiguration", "ssoLoginHistory", "statsdConfiguration", "tags", "test", "workspaces", "zonesAndGateways"
taskName
Stringoptional
The name of the task which owns property sheet.
timeout
Longoptional
Maximum duration of execution for the given DSL, in seconds. Defaults to maxDslDuration server setting.
transitionDefinitionName
Stringoptional
The name of the transition definition container of the property sheet that owns the property.
transitionName
Stringoptional
The name of the transition container of the property sheet that owns the property.
triggerName
Stringoptional
The name of the trigger which owns property sheet.
userName
Stringoptional
The name of the user container of the property sheet that owns the property.
widgetName
Stringoptional
The name of the widget of the property sheet that owns the property.
workflowDefinitionName
Stringoptional
The name of the workflow definition container of the property sheet that owns the property.
workflowName
Stringoptional
The name of the workflow container of the property sheet that owns the property.
workspaceName
Stringoptional
The name of the workspace container of the property sheet.
zoneName
Stringoptional
The name of the zone container of the property sheet.

Usage

Perl

$cmdr->evalDsl( "test-dsl" # dsl # optionals );

ectool

ectool evalDsl \ "test-dsl" `# dsl` \ # optionals

Examples

Perl

To specify the DSL text (<dsl>):

$cmdr->evalDsl "project 'My WAR file'"

To specify the path to the DSL script on the client (<dslFile>):

$cmdr->evalDsl({dslFile => c:/dslScripts/myWarFile.dsl});

ectool

To specify the DSL text (<dsl>):

ectool evalDsl "project 'My WAR file' "

To specify the path to the DSL script on the client (<dslFile>):

ectool evalDsl --dslFile c:/dslScripts/myWarFile.dsl