Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 871 Bytes

shell.md

File metadata and controls

42 lines (30 loc) · 871 Bytes

Plugin Shell

Runs a given Shell command.

Configuration

Options

  • command - Required - The shell command to run.
setup:
    shell:
        command: "bin/console build"

You should understand, that in old configuration type, you can run only one command!

New format of Configuration Options

setup:
   shell:
       - "[ -d /www ]"
       - "chmod u+x %BUILD_PATH%/bin/console"
       - "%BUILD_PATH%/bin/console build"

When a command fails, the remaining ones are not run.

Each new command forgets about what was before

So if you want cd to directory and then run script there, combine those two commands into one like:

setup:
    shell:
        - "cd %BUILD_PATH% && php artisan migrate" # Laravel Migrations

See variables which you can use in shell commands