Skip to main content

Matrix Build

This tutorial explains how to set up matrix build to run against every possible combination of parameter values.

Assumed Scenario

Test against any combination of Oracle/MySQL and Linux/Windows upon master branch committing

How to Set Up

To do it, edit build spec to add a CI job with below setting:

  1. Define two parameters, db and os:

    Matrix Build Params

  2. Define a job trigger to trigger build whenever master branch is updated. The trigger specifies values Oracle/MySQL for parameter db, and Linux/Windows for parameter os:

    Matrix Build Trigger

  3. In commands section of the job, uses parameter db and os via variable:

    Matrix Build Commands

  4. You may check the builds page to see build status of each parameter combination:

    Matrix Build Builds