plugin

The plugin step allows you to execute a plug-in command. Note that this step is not valid for an application process.

Format

plugin step "foo" is
    -- define name of plugin; required
    plugin "Shell"

    -- define name of plugin command; required
    command "Shell"

    -- absolute path of the working directory for the step; optional
    -- if undefined, the default working directory for the process is used
    working-directory "/working/directory"

    -- javascript precondition script that must evaluate to true for the step to execute; optional
    precondition-script
       """
       true
       """

    -- define properties that configure the step; optional
    -- may be repeated
    property "prop1" = "value1"
    property "prop2" = "value2"
on success
    start "bar"
end

Properties

Refer to the plug-in documentation in the UrbanCode Deploy plug-ins for detailed information about the specific values required to configure the plug-in.

Example


start is
    start A
    start B
end

plugin step A is
    plugin plugin-value
    command command-value
    property prop1 = prop1-value
    property prop2 = prop2-value
    property prop3 = prop3-value
on success
    finish
end

plugin step B is
    plugin plugin-value
    command command-value
    working-directory "/working/directory"
    precondition-script "true"
on success
    finish
end