Skip to content

The most basic feature: Script

The script feature is the most basic feature of a job.

The script element is a string array. You can define multiple commands to run in the job. The commands are executed in the order they are defined. For each elemtent in the array, a new shell is started.

job:
  script:
    - echo "Hello, world!"
    - echo "Hello from a new shell!"
    - |
      echo "This is a multi-line script"
      echo "And this is the second line"