-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Irina edited this page Jun 11, 2020
·
8 revisions
EC-DslDeploy is a plugin to export from or import to a server a full structure of DSL coder.
it supports the following file structure.
You can deploy your code either from an ElectricFlow Artifact (best practice if you have an ElectricFlow code CD pipeline) or from a simple directory (for example for the CI process).
Structure The main structure is an "objects" directory then a nested directory for each element of this type that can contain an optional "properties" directory as well as an object.grooy (or .dsl). It can also repeat this set with sub-objects. Something like:
|_ COMP1
|_ component.groovy
|_ properties
|_ processes
|_ PROC1
...
The full supported is available in this page file structure.
Each level will provide 2 variables:
- objectName: a variable inherited from the directory name for that object
- objectDir: a variable indicating from where the file is read from the server so it can be used to read additional files (like the content of a step command)
Example:
procedure procedureName, // the name is inherited from the directory name
description: "my awesome procedure",
{
step 'verifications',
description: 'Check to be sure the release is not locked',
shell: 'ec-perl',
errorHandling: 'abortJob',
command: new File(procedureDir, "step_code/verifications.pl").text
}