shell

The shell step is a shortcut for the plugin step that specifies the Shell plug-in and the Shell command. Note that this step is not valid in an application process.

Format

shell step "foo" is
    -- a string in the body defines the script; required
    """
    msg="hello world A"
    echo $msg
    """

    -- run the script without waiting for it to complete; optional
    -- "output.log" is the path of a file that captures the output
    run-as-daemon "output.log"

    -- 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
       """
on success
    start "bar"
end

Properties

Refer to the Shell plug-in documentation for detailed information about the specific properties and values required to configure them.

Example

start is
    start A
    start B
    start C
    finish
end

shell step A is
    "echo A"
on success
    finish
end

shell step B is
    "echo B"
    run-as-daemon "daemon.log"
on success
    finish
end

shell step C is
    "echo B"
    working-directory "/working/directory"
    precondition-script "true"
on success
    finish
end