scriptStep - ODEX-TOS/tos-installer-backend GitHub Wiki

A script is an execution step. This execution step takes as an argument the name of a script model specified in the models section. It will then copy the script over to the final runner. Lets take a look at the yaml

models:
  - scripts:
      - script:
          name: "script1"
          command: |
            echo hello world
            echo hello 2 $USER
      - script:
          name: "script2"
          file: "foo.sh"
execution:
 - script: "script1" # execute the inline commands of script2
 - script: "script2" # execute the commands specified in foo.sh