x
login Signup

How do I specify a parameterized snapshot in DSL?

In ElectricFlow, I can specify an input parameter to a pipeline named snapshotVersion and then use it as the specification for the snapshot version in a Pipeline Task of type Application Process with something like this:

ws-$[snapshotVersion]

I see I can do this by clicking on the "T" icon, entering the above text, and then pressing RETURN to enter the value. I have tested this and it works.

When I try to set this up via DSL and assign the snapshotName attribute of my Task object to the same text, I get this error instead when I try to read my DSL file:

Details: No such snapshot 'ws-$[snapshotVersion]' found for application 'Web Site'

How do I enable the setting of this snapshotName with a parameter reference? It looks identical to my in-line DSL in the UI for the working model?

avatar image By marcoman 2.2k asked Jan 10 at 02:47 PM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

Ha. I figured it out.

When we specify a parameterized snapshot name, we also need to include this line

advancedMode = 1

to enable an advanced mode necessary for the feature. See the docs.

avatar image By marcoman 2.2k answered Jan 10 at 02:57 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.