
The Probo.CI Script plugin is very similar to the Shell plugin but is designed to run multiple lines of commands.
Instead of command, the Probo Script plugin requires a parameter for script. This allows you to define a set of Shell commands to run during the Probo Build process for your site. You can list as many commands as you like within the steps in your .probo.yaml file. Remember to include a name for each script.
Add your script as a multi-line YAML string.
1 2 3 4 5 6 7 8 | steps: - name: List Pull Request files plugin: Script script: | cd $SRC_DIR files=$(ls) echo "Listing all files included in this Pull Request..." echo files $files |
You can also add your script in the traditional YAML syntax. Each new line in your script is a new item in the sequence.
1 2 3 4 5 6 7 8 | steps: - name: List Pull Request files plugin: Script script: - cd $SRC_DIR - files=$(ls) - echo "Listing all files included in this Pull Request..." - echo files $files |
Currently a Probo Build Step will pass or fail based on the exit code of the last command run in that particular step. Be sure to put any automated tests you want to ensure return the exit code you desire as the last command in a Probo Script Plugin step or in a separate Probo Build Step. False positives can occur if a command exits 0 after automated tests such as behat have actually failed in the Probo Build Step. You can force a step to exit and fail on the first non-zero exit code using bash set -e inside of the Script. This same execution ordering should be noted on Probo plugins that extend the Probo Script Plugin like the Probo LAMP Plugin, the Probo Drupal Plugin, and the Probo WordPress Plugin.
Here is an example using a multi-line YAML string.
1 2 3 4 5 6 7 8 9 10 11 12 | assets: - dev.sql.gz steps: - name: List Pull Request files plugin: Script script: | gunzip -c $ASSET_DIR/dev.sql.gz | `mysql foo` rm $ASSET_DIR/dev.sql.gz cd $SRC_DIR files=$(ls) echo "Listing all files included in this Pull Request..." echo files $files |
Here is an example using traditional YAML syntax.

When you sign up for a Probo.CI registration code, you will get a two week trial of the plan of your choosing. For more information on how to get started, click here .
LEARN MORE ABOUT PROBO.CI'S PRICING