Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Cloudbees CD RO Tutorials: DSL

URL – https://docs.cloudbees.com/docs/cloudbees-cd-api/latest/flow-api/dslabout


From the command-line interface 
Use the evalDsl command to evaluate and run a DSL script. See the command evalDsl for a list of the supported arguments. 
 
These ectool examples show how to evaluate a DSL script. 
 
When specifying the DSL text, enter ectool evalDsl <dsl>. For example: 
 
$ ectool evalDsl "project 'My WAR file' " 

When specifying the path to the DSL script on the client, enter evalDsl --dslFile <dslFile>. For example: 
 
$ ectool evalDsl --dslFile c:/dslScripts/myWarFile.dsl
$ ectool evalDsl --dslFile c:/dslScripts/myWarFile.dsl

  136  ectool evalDsl dsl --describe 1
  138  ectool evalDsl getProcedure --describe 1
  
  141  ectool evalDsl --dslFile pro.groovy
  148  ectool evalDsl --dslFile pro.groovy
  149  vi pro.groovy
  150  ectool evalDsl --dslFile pro.groovy

Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x